Breaking News: Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2024-53988

rails-html-sanitizer: Possible XSS vulnerability with certain configurations of rails-html-sanitizer 1.6.0

Overview

Published
2 Dec 2024
Modified
17 Jun 2026
Low CVE
1 Registry packages
2 OS packages
2 Linux distributions
Yes Fix available

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.

Source: OX vulnerability database

Severity

6.1 · LOW

CVSS 3.1 base score, scored by NVD.

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Weakness: CWE-79

Affected packages · 1

Packages affected by CVE-2024-53988
EcosystemPackageVulnerableFixed in
RubyGems rails-html-sanitizer >=1.6.0, <1.6.1 1.6.1

Open a package to see all its vulnerabilities.

Operating systems · 2 fixes

Red Hat 1 release · 1 package

affected 1
rubygem-rails-html-sanitizer
Red Hat fixes for CVE-2024-53988
ReleasePackageFixed in
7 (satellite:el8) rubygem-rails-html-sanitizer affected

openSUSE 1 release · 1 package

fixed 1
ruby4-0-rubygem-rails-html-sanitizer
openSUSE fixes for CVE-2024-53988
ReleasePackageFixed inAdvisory
Tumbleweed ruby4-0-rubygem-rails-html-sanitizer 1.7.0-1.1 openSUSE-SU-2026:10569-1

References

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.