CVE catalog

CVE-2018-3741

ruby-rails-html-sanitizer: CVE-2018-3741

[CVE catalog]

Severity
Medium · CVSS 6.5CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Published
Source
[NVD] · [CVE record]
EPSS
1.25% · Oct 25, 2026

There is a possible XSS vulnerability in all rails-html-sanitizer gem versions below 1.0.4 for Ruby. The gem allows non-whitelisted attributes to be present in sanitized output when input with specially-crafted HTML fragments, and these attributes can lead to an XSS attack on target applications. This issue is similar to CVE-2018-8048 in Loofah. All users running an affected release should either upgrade or use one of the workarounds immediately.

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
Suserubygem-rails-html-sanitizeropenstack cloud 71.0.3-8.8.1fixed
Suserubygem-rails-html-sanitizeropenstack cloud crowbar 81.0.3-8.8.1fixed
Suserubygem-rails-html-sanitizeropenstack cloud crowbar 91.0.3-8.8.1fixed
Suserubygem-rails-html-sanitizerenterprise storage 41.0.3-8.8.1fixed
Ubunturuby-rails-html-sanitizer16.041.0.2-1vulnerable
Ubunturuby-rails-html-sanitizer16.041.0.3-1vulnerable
Ubunturuby-rails-html-sanitizer16.041.0.3-2vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianruby-rails-html-sanitizersourcesid1.0.4-1not yet assignedNot reported[893994]
Debianruby-rails-html-sanitizersourceforky1.0.4-1not yet assignedNot reported[893994]
Debianruby-rails-html-sanitizersourcetrixie1.0.4-1not yet assignedNot reported[893994]
Debianruby-rails-html-sanitizersourcebookworm1.0.4-1not yet assignedNot reported[893994]
Suserubygem-rails-html-sanitizerrpmopenstack cloud 71.0.3-8.8.1Not reportedSUSE-SU-2019:2182-1Not reported
Suserubygem-rails-html-sanitizerrpmopenstack cloud crowbar 81.0.3-8.8.1Not reportedSUSE-SU-2019:2182-1Not reported
Suserubygem-rails-html-sanitizerrpmopenstack cloud crowbar 91.0.3-8.8.1Not reportedSUSE-SU-2019:2182-1Not reported
Suserubygem-rails-html-sanitizerrpmenterprise storage 41.0.3-8.8.1Not reportedSUSE-SU-2019:2182-1Not reported

[Debian bug #893994]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

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

      Fixed · Fixed: 1.0.4-1

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

    • 1.4.4-1 · all · bookworm

      Fixed · Fixed: 1.0.4-1

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

[Debian 13 (Trixie)]

  • Details (2)
    • 1.6.2-1 · all · trixie

      Fixed · Fixed: 1.0.4-1

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

    • 1.6.2-1 · all · trixie

      Fixed · Fixed: 1.0.4-1

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

Observed:

References