CVE-2015-7580 json
rails-html-sanitizer Cross-site Scripting vulnerability
published 2016-02-16 10 y ago modified 2026-06-17 4 mo ago also GHSA-ghqm-pgxj-37gq , EUVD-2017-0239
- cvss
- 6.1
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.2%
- EPSS 2.2% chance of exploitation in 30 days, percentile 82%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- rubygems rails-html-sanitizer 1.0.3
- ruby-rails-html-sanitizer Debian 14, Debian 13, Debian 12 1.0.3-1
debian advisories DEBIAN-CVE-2015-7580
- portus SLE Module for Containers 12 2.0.3-2.4
- rubygem-rails-html-sanitizer Enterprise Storage 2.1 1.0.2-7.1
suse advisories SUSE-SU-2016:1146-1SUSE-SU-2016:0391-1
- rubygem-rails-html-sanitizer openSUSE Tumbleweed 1.6.0-1.9
- rubygem-rails-html-sanitizer openSUSE Tumbleweed 1.6.0-1.7
- rubygem-rails-html-sanitizer openSUSE Tumbleweed 1.6.0-1.5
- rubygem-rails-html-sanitizer openSUSE Tumbleweed 1.4.3-1.1
- ruby3.2-rubygem-rails-html-sanitizer openSUSE Tumbleweed 1.5.0-2.1
opensuse advisories openSUSE-SU-2026:10361-1openSUSE-SU-2025:15125-1openSUSE-SU-2024:14175-1openSUSE-SU-2024:12145-1openSUSE-SU-2024:13137-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2015-7580 updated cvss 4.3
rubygem-rails-html-sanitizer: Possible XSS vulnerability in the white list sanitizer
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.19% chance of exploitation in the next 30 days, higher than 82% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
| GitHub | 3.0 | 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| rubygems | rails-html-sanitizer | <1.0.3 |
1.0.3 |
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/rails/rails-html-sanitizer/commit/63903b0eaa6d2a4e1c91bc86008256c4c8335e78
web
-
lists.opensuse.org
/opensuse-security-announce/2016-04/msg00053.html
vendor-advisory, web
-
lists.opensuse.org
/opensuse-security-announce/2016-02/msg00024.html
vendor-advisory, web
-
lists.opensuse.org
/opensuse-security-announce/2016-02/msg00014.html
vendor-advisory, web
-
groups.google.com
/forum/message/raw?msg=rubyonrails-security/uh--W4TDwmI/m_CVZtdbFQAJ
mailing-list, web
-
openwall.com
/lists/oss-security/2016/01/25/15
mailing-list, web
-
securitytracker.com
/id/1034816
vdb-entry
-
nvd.nist.gov
/vuln/detail/CVE-2015-7580
advisory
-
github.com
/rails/rails-html-sanitizer
web
-
web.archive.org
/web/20160128075017/http://www.securitytracker.com/id/1034816
web
Sources
- CVE List CVE-2015-7580
- GitHub Advisory GHSA-ghqm-pgxj-37gq
- NVD CVE-2015-7580
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.