CVE catalog

CVE-2022-23519

ruby-rails-html-sanitizer: CVE-2022-23519

[CVE catalog]

Severity
High · CVSS 7.2CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
Published
Source
[NVD] · [CVE record]
EPSS
1.05% · Oct 25, 2026

rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications. Prior to version 1.4.4, a possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer may allow an attacker to inject content if the application developer has overridden the sanitizer's allowed tags in either of the following ways: allow both "math" and "style" elements, or allow both "svg" and "style" elements. Code is only impacted if allowed tags are being overridden. . This issue is fixed in version 1.4.4. All users overriding the allowed tags to include "math" or "svg" and "style" should either upgrade or use the following workaround immediately: Remove "style" from the overridden allowed tags, or remove "math" and "svg" from the overridden allowed tags.

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-1fixed
Debianruby-rails-html-sanitizerforky1.7.1-1fixed
Debianruby-rails-html-sanitizertrixie1.6.2-1fixed
Debianruby-rails-html-sanitizerbookworm1.4.4-1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianruby-rails-html-sanitizersourcesid1.4.4-1not yet assignedNot reported[1027153]
Debianruby-rails-html-sanitizersourceforky1.4.4-1not yet assignedNot reported[1027153]
Debianruby-rails-html-sanitizersourcetrixie1.4.4-1not yet assignedNot reported[1027153]
Debianruby-rails-html-sanitizersourcebookworm1.4.4-1not yet assignedNot reported[1027153]

[Debian bug #1027153]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

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

      Fixed · Fixed: 1.4.4-1

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

    • 1.4.4-1 · all · bookworm

      Fixed · Fixed: 1.4.4-1

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

Observed:

References