CVE-2022-23520: medium-severity vulnerability in rails-html-sanitizer
rails-html-sanitizer contains an incomplete fix for an XSS vulnerability
Published · Updated
E-mail alert when it lands in KEV, gets a public PoC or its score goes up.
13Vexday Risk Score
No sign of exploitation. No public exploitation artifact known so far.
ssvc Trackcvss 6.1epss 1.2%
rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications. Prior to version 1.4.4, there is a possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer due to an incomplete fix of CVE-2022-32209. Rails::Html::Sanitizer may allow an attacker to inject content if the application developer has overridden the sanitizer's allowed tags to allow both "select" and "style" elements. Code is only impacted if allowed tags are being overridden. This issue is patched in version 1.4.4. All users overriding the allowed tags to include both "select" and "style" should either upgrade or use this workaround: Remove either "select" or "style" from the overridden allowed tags. NOTE: Code is _not_ impacted if allowed tags are overridden using either the :tags option to the Action View helper method sanitize or the :tags option to the instance method SafeListSanitizer#sanitize.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Affected products
rails · rails-html-sanitizerRelated CVEs — rails-html-sanitizer
In the same product, most dangerous first.
CVE-2022-23517HIGHInefficient Regular Expression Complexity in rails-html-sanitizerEPSS 1.6%CVE-2022-23519HIGHPossible XSS vulnerability with certain configurations of rails-html-sanitizerEPSS 1.1%CVE-2022-23518MEDIUMImproper neutralization of data URIs allows XSS in rails-html-sanitizerEPSS 0.9%CVE-2024-53985LOWPossible XSS vulnerability with certain configurations of rails-html-sanitizer 1.6.0EPSS 0.6%CVE-2026-73648MEDIUMrails-html-sanitizer: Possible XSS vulnerability with certain configurationsEPSS 0.5%CVE-2024-53989LOWPossible XSS vulnerability with certain configurations of rails-html-sanitizer 1.6.0EPSS 0.5%