Read the docs
TI-2024-36146 Aliases CVE-2024-53987GHSA-2x5m-9ch4-qgrr

Possible XSS vulnerability with certain configurations of rails-html-sanitizer 1.6.0

Priority LOW 12CWE-79Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Passive
Attack complexity
Low
Attack requirements
Present
Impact type
Cross-site scripting
Confidentiality · integrity · availability
None · None · None
Fix status
Partial Red Hat: 2 without a fix

Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-79.

Summary

rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications. There is a possible XSS vulnerability with certain configurations of Rails::HTML::Sanitizer 1.6.0 when used with Rails >= 7.1.0. A possible XSS vulnerability with certain configurations of Rails::HTML::Sanitizer may allow an attacker to inject content if HTML5 sanitization is enabled and the application developer has overridden the sanitizer's allowed tags where the "style" element is explicitly allowed and the "svg" or "math" element is not allowed. This vulnerability is fixed in 1.6.1.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00446 39th percentileScored 2026-11-07
Fix Partial rails-html-sanitizer (rails): 1.6.1rails-html-sanitizer (RubyGems): 1.6.1Red Hat: 2 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
Railsrails-html-sanitizer1.6.0 to before 1.6.11.6.1Patch availableCNA
—rails-html-sanitizer (RubyGems)1.6.0 to before 1.6.11.6.1Patch availableGHSA-2x5m-9ch4-qgrr
  • rails-html-sanitizer VendorRails Affected 1.6.0 to before 1.6.1 Fixed in 1.6.1 Patch available CNA
  • rails-html-sanitizer (RubyGems) Vendor— Affected 1.6.0 to before 1.6.1 Fixed in 1.6.1 Patch available GHSA-2x5m-9ch4-qgrr

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:rubyonrails:rails_html_sanitizers:1.6.0:*:*:*:*:rails:*:*1.6.0VulnerableRails
  • cpe:2.3:a:rubyonrails:rails_html_sanitizers:1.6.0:*:*:*:*:rails:*:* Versions 1.6.0 Vulnerable ·Rails

Remediation

  • Fix · CNA rails-html-sanitizer (rails) Fixed in 1.6.1
  • Fix · GHSA-2x5m-9ch4-qgrr rails-html-sanitizer (RubyGems) Fixed in 1.6.1 Advisory →

Vendor assessments

Red Hat

Red Hat rating: Low. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat 3scale API Management Platform 2AffectedNo fix yet: Fix deferred
Red Hat Satellite 6AffectedNo fix yet: Fix deferred
Not affected: 2 products
  • Red Hat 3scale API Management Platform 2
  • Red Hat Satellite 6

Timeline

  1. 2026-10-02 Threatist record created from CVE-2024-53987
  2. 2026-10-03 Alias added: GHSA-2x5m-9ch4-qgrr

References

  • TI-2022-13919 Cross-site scripting in https://github.com/rails/rails-html-sanitizer CVSS 3.1MEDIUM 6.1
  • TI-2024-36144 Possible XSS vulnerability with certain configurations of rails-html-sanitizer 1.6.0 CVSS 4.0LOW 2.3
  • TI-2022-07576 Inefficient Regular Expression Complexity in rails-html-sanitizer CVSS 3.1HIGH 7.5
  • TI-2022-07578 Possible XSS vulnerability with certain configurations of rails-html-sanitizer CVSS 3.1HIGH 7.2
  • TI-2022-07579 rails-html-sanitizer contains an incomplete fix for an XSS vulnerability CVSS 3.1MEDIUM 6.1
  • TI-2022-07577 Improper neutralization of data URIs allows XSS in rails-html-sanitizer CVSS 3.1MEDIUM 6.1
See all 9 →

Sources