Skip to main content
← All vulnerabilities
CVE-2024-53988GHSA-CFJX-W229-HGX5

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: none
  • 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. 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 "math", "mtext", "table", and "style" elements are allowed and either either "mglyph" or "malignmark" are allowed. This vulnerability is fixed in 1.6.1.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · 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 2

GitHub · rails/rails-html-sanitizer