PT-2024-35998

CVE-2024-53986

·

Published

2024-12-02

·

Updated

2026-04-17

Description by

CVSS 2.0
6.4
Medium
MetricsAV:N/AC:L/Au:N/C:P/I:P/A:N
Name of the Vulnerable Software and Affected Versions: rails-html-sanitizer version 1.6.0
Description: 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" and "style" elements are both explicitly allowed. This issue is relevant when used with Rails >= 7.1.0. The default configuration is to disallow these elements, and code is only impacted if allowed tags are being overridden.
Recommendations: For rails-html-sanitizer version 1.6.0, upgrade to version 1.6.1 to fix the vulnerability. As a temporary workaround, consider removing "math" or "style" from the overridden allowed tags, or downgrade sanitization to HTML4 by configuring config.action view.sanitizer vendor and config.action text.sanitizer vendor accordingly.
Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Related identifiers
GHSA-638J-PMJW-JQ48
OPENSUSE-SU-2026:10569-1
Found an issue in the description? Have something to add? Feel free to write us 👾