Skip to main content
← All vulnerabilities
CVE-2024-53985GHSA-W8GC-X259-RC7X

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.6.1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

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 and Nokogiri < 1.15.7, or 1.16.x < 1.16.8. The 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 with both "math" and "style" elements or both both "svg" and "style" elements. This vulnerability is fixed in 1.6.1.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • rails rails-html-sanitizer

    From 1.6.0 · fixed in 1.6.1

  • rails-html-sanitizerRubyGems

    From 1.6.0 · fixed in 1.6.1

References 3

GitHub · rails/rails-html-sanitizer