Live threats

All CVEs / Rubyonrails

CVE-2015-7580Rubyonrails Html Sanitizer

Medium 6.1 No auth needed

Priority
52
CVSS 3.0
6.1
EPSS
2.2%
probability of exploitation in 30 days · percentile 83
Auth required
No
Published
Feb 16, 2016
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Html Sanitizer.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
RubyGems rails-html-sanitizer < 1.0.3 1.0.3 gem "rails-html-sanitizer", ">= 1.0.3"

Per OSV / GitHub Advisories (GHSA-ghqm-pgxj-37gq). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
rubyonrailshtml_sanitizer≤ 1.0.2

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.