CVE-2024-53988
published low CVSS 4.0 · 2.3Possible XSS vulnerability with certain configurations of rails-html-sanitizer 1.6.0
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| rails | — | rails-html-sanitizer>= 1.6.0, < 1.6.1 | Affected | Not stated | GitHub_M |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby4.0-rubygem-rails-html-sanitizeraarch64 | Advisory build | 1.7.0-1.1 | OPENSUSE-SU-2026:10569-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby4.0-rubygem-rails-html-sanitizerppc64le | Advisory build | 1.7.0-1.1 | OPENSUSE-SU-2026:10569-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby4.0-rubygem-rails-html-sanitizers390x | Advisory build | 1.7.0-1.1 | OPENSUSE-SU-2026:10569-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby4.0-rubygem-rails-html-sanitizerx86_64 | Advisory build | 1.7.0-1.1 | OPENSUSE-SU-2026:10569-1 |
Description
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", "mtext", "table", and "style" elements are allowed and either either "mglyph" or "malignmark" are allowed. This vulnerability is fixed in 1.6.1.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 2.3 / 10
- Severity
- low
- Provider
- GitHub_M · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| rails | rails-html-sanitizer | >= 1.6.0, < 1.6.1 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-79 CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
2Provider assertions
2GitHub_M · cna
Possible XSS vulnerability with certain configurations of rails-html-sanitizer 1.6.0
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 6cb2f92457c4869e42f69c6084e4c870661656fcbbd5a4117c303424e00d507a
- Ingested
- 23 Sep 2026, 08:31:11 UTC
- Source record
- Official CVE record