
CVE catalog
CVE-2022-23520
ruby-rails-html-sanitizer: CVE-2022-23520
- Severity
- Medium · CVSS 6.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 1.19% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | ruby-rails-html-sanitizer | sid | 1.7.1-1 | fixed |
| Debian | ruby-rails-html-sanitizer | forky | 1.7.1-1 | fixed |
| Debian | ruby-rails-html-sanitizer | trixie | 1.6.2-1 | fixed |
| Debian | ruby-rails-html-sanitizer | bookworm | 1.4.4-1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | ruby-rails-html-sanitizer | source | sid | 1.4.4-1 | not yet assigned | Not reported | [1027153] |
| Debian | ruby-rails-html-sanitizer | source | forky | 1.4.4-1 | not yet assigned | Not reported | [1027153] |
| Debian | ruby-rails-html-sanitizer | source | trixie | 1.4.4-1 | not yet assigned | Not reported | [1027153] |
| Debian | ruby-rails-html-sanitizer | source | bookworm | 1.4.4-1 | not yet assigned | Not reported | [1027153] |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [ruby-rails-html-sanitizer]Fixed
Details (2)
1.4.4-1· all · bookwormFixed · Fixed:
1.4.4-1dsa · ruby-rails-html-sanitizer · debian · bookworm
1.4.4-1· all · bookwormFixed · Fixed:
1.4.4-1dsa · ruby-rails-html-sanitizer · debian · bookworm
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/suse-su-2023_3534-1.json]
- [https://security-tracker.debian.org/tracker/CVE-2022-23520]
- [https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-23520.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2023/wid-sec-w-2023-1143.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]