CVE-2015-7580Rubyonrails Html Sanitizer
Medium 6.1 No auth needed
Follow: this CVE · Rubyonrails · Rubyonrails Html Sanitizer We alert you by email or Slack (account required).
- Priority
- 52
- CVSS 3.0
- 6.1
- EPSS
- 2.2% probability of exploitation in 30 days · percentile 83
- Auth required
- No
- Published
- Feb 16, 2016
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for Html Sanitizer.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| RubyGems | rails-html-sanitizer |
< 1.0.3 |
1.0.3 |
gem "rails-html-sanitizer", ">= 1.0.3" |
Per OSV / GitHub Advisories (GHSA-ghqm-pgxj-37gq). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| rubyonrails | html_sanitizer | ≤ 1.0.2 |
Official advisories
- ruby4.0-rubygem-rails-html-sanitizer-1.6.0-1.9 on GA media · SUSE · openSUSE-SU-2026:10361-1 · Mar 13, 2026 High
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.