
CVE catalog
CVE-2024-53986
ruby-rails-html-sanitizer: CVE-2024-53986
- 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
- 0.47% · Oct 25, 2026
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.
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 | not affected |
| Debian | ruby-rails-html-sanitizer | forky | 1.7.1-1 | not affected |
| Debian | ruby-rails-html-sanitizer | trixie | 1.6.2-1 | not affected |
| Debian | ruby-rails-html-sanitizer | bookworm | 1.4.4-1 | not affected |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | ruby-rails-html-sanitizer | source | sid | Not affected | unimportant | Not reported | Not reported |
| Debian | ruby-rails-html-sanitizer | source | forky | Not affected | unimportant | Not reported | Not reported |
| Debian | ruby-rails-html-sanitizer | source | trixie | Not affected | unimportant | Not reported | Not reported |
| Debian | ruby-rails-html-sanitizer | source | bookworm | Not affected | unimportant | Not reported | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [ruby-rails-html-sanitizer]Not affected
Details (2)
1.4.4-1· all · bookwormNot affected
dsa · ruby-rails-html-sanitizer · debian · bookworm
1.4.4-1· all · bookwormNot affected
dsa · ruby-rails-html-sanitizer · debian · bookworm
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2026_10569-1.json]
- [https://security-tracker.debian.org/tracker/CVE-2024-53986]
- [https://wid.cert-bund.de/.well-known/csaf/white/2024/wid-sec-w-2024-3581.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [SUSE security advisories and VEX]