
CVE catalog
CVE-2024-53985
ruby-rails-html-sanitizer: CVE-2024-53985
- 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.60% · 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 and Nokogiri < 1.15.7, or 1.16.x < 1.16.8. The 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 with both "math" and "style" elements or both both "svg" and "style" elements. 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 |
| Opensuse | rubygem-rails-html-sanitizer | tumbleweed | 1.7.0-1.1 | fixed |
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 |
| Opensuse | rubygem-rails-html-sanitizer | rpm | tumbleweed | 1.7.0-1.1 | Not reported | OPENSUSE-SU-2026:10569-1 | Not reported |
OpenFactory catalog packages
[openSUSE Tumbleweed]
- [ruby4.0-rubygem-rails-html-sanitizer]Unknown
Source package: [rubygem-rails-html-sanitizer]
Details (1)
1.7.0-1.3· x86_64 · tumbleweedUnknown · Fixed:
1.7.0-1.1Version impact unknown
dsa · rubygem-rails-html-sanitizer · opensuse · tumbleweed
[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://osv.dev/vulnerability/openSUSE-SU-2026:10569-1]
- [https://security-tracker.debian.org/tracker/CVE-2024-53985]
- [https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-53985.json]
- [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] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]