
CVE catalog
CVE-2022-23519
ruby-rails-html-sanitizer: CVE-2022-23519
- Severity
- High · CVSS 7.2
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 1.05% · Oct 25, 2026
rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications. Prior to version 1.4.4, a possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer may allow an attacker to inject content if the application developer has overridden the sanitizer's allowed tags in either of the following ways: allow both "math" and "style" elements, or allow both "svg" and "style" elements. Code is only impacted if allowed tags are being overridden. . This issue is fixed in version 1.4.4. All users overriding the allowed tags to include "math" or "svg" and "style" should either upgrade or use the following workaround immediately: Remove "style" from the overridden allowed tags, or remove "math" and "svg" from the overridden allowed tags.
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-23519]
- [https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-23519.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]