CVE catalog

CVE-2024-53986

ruby-rails-html-sanitizer: CVE-2024-53986

[CVE catalog]

Severity
Medium · CVSS 6.1CVSS: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.

DistributionPackageReleaseVersionStatus
Debianruby-rails-html-sanitizersid1.7.1-1not affected
Debianruby-rails-html-sanitizerforky1.7.1-1not affected
Debianruby-rails-html-sanitizertrixie1.6.2-1not affected
Debianruby-rails-html-sanitizerbookworm1.4.4-1not affected

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianruby-rails-html-sanitizersourcesidNot affectedunimportantNot reportedNot reported
Debianruby-rails-html-sanitizersourceforkyNot affectedunimportantNot reportedNot reported
Debianruby-rails-html-sanitizersourcetrixieNot affectedunimportantNot reportedNot reported
Debianruby-rails-html-sanitizersourcebookwormNot affectedunimportantNot reportedNot reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Details (2)
    • 1.4.4-1 · all · bookworm

      Not affected

      dsa · ruby-rails-html-sanitizer · debian · bookworm

    • 1.4.4-1 · all · bookworm

      Not affected

      dsa · ruby-rails-html-sanitizer · debian · bookworm

Observed:

References