🛡️ CVE-2022-23520 on Debian — ruby-rails-html-sanitizer
Description
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.
Distribution advisory
This page covers CVE-2022-23520 as tracked by Debian, for the package ruby-rails-html-sanitizer. The fix is available in version 1.4.4-1; earlier versions remain affected.
How this vulnerability can be exploited
This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. A user must be tricked into taking some action. The scope is changed, meaning a successful attack can affect components beyond the vulnerable one. Rated impact: confidentiality low, integrity low, availability none.
Weakness class
DEBIAN-CVE-2022-23520 is classified as CWE-79: Cross-site Scripting (XSS). User-supplied data is written into a page without escaping, so attacker script runs in the browser of anyone who views it.
Affected software
DEBIAN-CVE-2022-23520 is recorded against 1 package.
- ruby-rails-html-sanitizer (fixed in 1.4.4-1)
Timeline and source
Published on 14 December 2022 and last revised on 4 August 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.
References
CVE-2022-23520 on other distributions
Each distribution ships its own build and its own fixed version. Pick the one you run:
Details
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| ruby-rails-html-sanitizer | — | 1.4.4-1 |
References
Similar Threats
- Unknown UBUNTU-CVE-2024-53985
- Unknown UBUNTU-CVE-2024-53986
- Unknown UBUNTU-CVE-2024-53987
- Unknown UBUNTU-CVE-2024-53988
- Unknown UBUNTU-CVE-2024-53989
Vulnerability Monitoring
Track new vulnerabilities in ruby-rails-html-sanitizer
DEBIAN-CVE-2022-23520 is rated CVSS 6.1 Medium. BotEraser monitors your WordPress installation and notifies you when software you use appears in our vulnerability database.
Set Up Free Alerts →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.