Cross-site Scripting (XSS) Affecting ruby-rails-html-sanitizer package, versions <1.0.3-1


Severity

Recommended
0.0
medium
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
2.69% (85th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ECHOLATEST-RUBYRAILSHTMLSANITIZER-18767116
  • published14 Aug 2026
  • disclosed16 Feb 2016

Introduced: 16 Feb 2016

CVE-2015-7580  (opens in a new tab)
CWE-79  (opens in a new tab)

How to fix?

Upgrade Echo:latest ruby-rails-html-sanitizer to version 1.0.3-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream ruby-rails-html-sanitizer package and not the ruby-rails-html-sanitizer package as distributed by Echo. See How to fix? for Echo:latest relevant fixed versions and status.

Cross-site scripting (XSS) vulnerability in lib/rails/html/scrubbers.rb in the rails-html-sanitizer gem before 1.0.3 for Ruby on Rails 4.2.x and 5.x allows remote attackers to inject arbitrary web script or HTML via a crafted CDATA node.