CVEfocus › CVE database › CVE-2024-53988

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

CVSS 2.3 LowEPSS 0.7% (higher than 50% of CVEs)Published 2024-12-02Updated 2024-12-03Assigner: GitHub_M

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.

CWE-79

What to do

Fixed builds are available from RubyGems: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

1Fixed
3Fix pending
3Under investigation
2Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10ruby-rails-html-sanitizerFix pendingUBUNTU-CVE-2024-53988
Ubuntu 26.04ruby-rails-html-sanitizerUnder investigationUBUNTU-CVE-2024-53988
Ubuntu 25.10ruby-rails-html-sanitizerWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-53988
Ubuntu 24.04ruby-rails-html-sanitizerUnder investigationUBUNTU-CVE-2024-53988
Ubuntu 22.04ruby-rails-html-sanitizerUnder investigationUBUNTU-CVE-2024-53988
Ubuntu 20.04ruby-rails-html-sanitizerWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-53988
Ubuntu 18.04ruby-rails-html-sanitizerFix pendingUBUNTU-CVE-2024-53988
Ubuntu 16.04ruby-rails-html-sanitizerFix pendingUBUNTU-CVE-2024-53988
RubyGems libraryrails-html-sanitizerFixed1.6.1GHSA-cfjx-w229-hgx5

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.