CVE-2024-53987

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-53987
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-53987.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-53987
Aliases
Downstream
Published
2024-12-02T21:15:48Z
Modified
2025-10-22T18:45:16.304836Z
Severity
  • 2.3 (Low) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N CVSS Calculator
Summary
Possible XSS vulnerability with certain configurations of rails-html-sanitizer 1.6.0
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-79"
    ]
}
References

Affected packages

Git / github.com/rails/rails-html-sanitizer

Affected ranges

Type
GIT
Repo
https://github.com/rails/rails-html-sanitizer
Events

Affected versions

v1.*

v1.6.0