{"id":"CVE-2024-53986","published":"2024-12-02T21:13:01Z","modified":"2024-12-03T14:33:51Z","title":"Possible XSS vulnerability with certain configurations of rails-html-sanitizer 1.6.0","vendor":"rails","product":"rails-html-sanitizer","tier":"tail","description":{"text":"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\" and \"style\" elements are both explicitly allowed. This vulnerability is fixed in 1.6.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.3,"severity":"LOW","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0077,"percentile":0.5201,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/rails/rails-html-sanitizer/security/advisories/GHSA-638j-pmjw-jq48","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/rails/rails-html-sanitizer/commit/f02ffbb8465e73920b6de0da940f5530f855965e","tags":["x_refsource_MISC"]}],"priority":{"score":12.0,"factors":[{"name":"EPSS percentile","points":10.4},{"name":"CVSS severity","points":1.61}]},"vendorSlug":"rails","affectedVersions":[{"vendor":"rails","product":"rails-html-sanitizer","versions":[">= 1.6.0, < 1.6.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-12-03T14:33:42.695853Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"rails-html-sanitizer","vulnerableRanges":[">=1.6.0, <1.6.1"],"patched":["1.6.1"],"from":["GHSA-638j-pmjw-jq48"],"provenance":"source"}],"summary":{"text":"The rails-html-sanitizer library (vendor: rails) contains a cross-site scripting flaw in version 1.6.0, where HTML5 sanitization fails to neutralise injected content when an application has overridden the allowed tags to explicitly permit both \"math\" and \"style\" elements. An attacker can inject script content into sanitised output when the library is used with Rails 7.1.0 or later, but only with that specific tag configuration and HTML5 sanitization enabled, and only if a user interacts with the crafted content (for example by visiting or clicking through to a page).","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:10:00Z"},"euvd":{"id":"EUVD-2024-3433","exploited":false,"provenance":"source"}}