CVE-2015-7579
MEDIUM 6.1CVSS 3.0rails-html-sanitizer Cross-site Scripting vulnerability
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.
- Published
- 16 Feb 2016
- Last modified
- 17 Jun 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-r9c2-cr39-c8g6
- Sources
- NVDJSONOSV GHSA-r9c2-cr39-c8g6JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | MEDIUM 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.0 | MEDIUM 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | rubyonrails | html_sanitizercpe:2.3:a:rubyonrails:html_sanitizer:*:*:*:*:*:ruby:*:* |
<= 1.0.2 | |
| OSV | RubyGems | rails-html-sanitizer | < 1.0.3 | 1.0.3 |
References
- http://lists.fedoraproject.org/pipermail/package-announce/2016-February/178046.html · WEB
- http://lists.fedoraproject.org/pipermail/package-announce/2016-February/178064.html · WEB
- http://lists.opensuse.org/opensuse-security-announce/2016-02/msg00014.html · WEB
- http://lists.opensuse.org/opensuse-security-announce/2016-02/msg00024.html · WEB
- http://lists.opensuse.org/opensuse-security-announce/2016-04/msg00053.html · WEB
- http://www.openwall.com/lists/oss-security/2016/01/25/12 · WEB
- http://www.securitytracker.com/id/1034816
- https://github.com/rails/rails-html-sanitizer/commit/49dfc1584c5b8e35a4ffabf8356ba3df025e8d3f · WEB
- https://groups.google.com/forum/message/raw?msg=ruby-security-ann/OU9ugTZcbjc/uksRkSxZEgAJ · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2015-7579 · ADVISORY
- https://github.com/rails/rails-html-sanitizer · PACKAGE
- https://web.archive.org/web/20160128075017/http://www.securitytracker.com/id/1034816 · WEB
History
- 25 Nov 2026 20:19 UTC · NVD: first stored (published 16 Feb 2016)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 24 Oct 2017)