CVE-2015-7580
medium
CVSS v3
6.1
CVSS v4 NEW
โ
VIR risk
6.1
Description
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.
Predictions
Exploit likelihood
71%
Patch ETA
โ
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
OS impact
| OS | Version | Status | Fixed in |
|---|---|---|---|
| debian | bookworm | fixed | 1.0.3-1 |
| debian | bullseye | fixed | 1.0.3-1 |
| debian | forky | fixed | 1.0.3-1 |
| debian | sid | fixed | 1.0.3-1 |
| debian | trixie | fixed | 1.0.3-1 |
Package impact
| Ecosystem | Package | Vulnerable | Fixed |
|---|---|---|---|
| RubyGems | rails-html-sanitizer | <>= 1.0.3 | >= 1.0.3 |
| RubyGems | rails-html-sanitizer | <1.0.3 | 1.0.3 |
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| rubyonrails | html_sanitizer | {"endIncluding":"1.0.2"} | |
| rubyonrails | rails | 4.2.0 | |
| rubyonrails | rails | 4.2.1 | |
| rubyonrails | rails | 4.2.2 | |
| rubyonrails | rails | 4.2.3 | |
| rubyonrails | rails | 4.2.4 | |
| rubyonrails | rails | 4.2.5 | |
| rubyonrails | rails | 4.2.5.1 | |
| rubyonrails | rails | 4.2.5.2 | |
| rubyonrails | rails | 4.2.6 | |
| rubyonrails | rails | 5.0.0 | |
References
- https://groups.google.com/forum/#!topic/rubyonrails-security/uh--W4TDwmI
- http://lists.opensuse.org/opensuse-security-announce/2016-02/msg00014.html
- http://lists.opensuse.org/opensuse-security-announce/2016-02/msg00024.html
- http://lists.opensuse.org/opensuse-security-announce/2016-04/msg00053.html
- http://www.openwall.com/lists/oss-security/2016/01/25/15
- http://www.securitytracker.com/id/1034816
- https://github.com/rails/rails-html-sanitizer/commit/63903b0eaa6d2a4e1c91bc86008256c4c8335e78
- https://groups.google.com/forum/message/raw?msg=rubyonrails-security/uh--W4TDwmI/m_CVZtdbFQAJ
- https://nvd.nist.gov/vuln/detail/CVE-2015-7580
- https://github.com/rails/rails-html-sanitizer
- https://web.archive.org/web/20160128075017/http://www.securitytracker.com/id/1034816
- https://security-tracker.debian.org/tracker/CVE-2015-7580
CWEs
CWE-79
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.