CVE catalog

CVE-2018-3740

ruby-sanitize: CVE-2018-3740

[CVE catalog]

Severity
Medium
Published
Source
[NVD] · [CVE record]
EPSS
1.47% · Oct 25, 2026

A specially crafted HTML fragment can cause Sanitize gem for Ruby to allow non-whitelisted attributes to be used on a whitelisted HTML element.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianruby-sanitizesid7.0.0-1fixed
Debianruby-sanitizeforky7.0.0-1fixed
Debianruby-sanitizetrixie7.0.0-1fixed
Debianruby-sanitizebookworm6.0.0-1.1+deb12u1fixed
Debianruby-sanitizebookworm-security6.0.0-1.1+deb12u1fixed
Ubunturuby-sanitize16.042.1.0-1vulnerable
Ubunturuby-sanitize16.042.1.0-2vulnerable
Ubunturuby-sanitize16.042.1.0-2+deb9u1build0.16.04.1fixed
Ubunturuby-sanitize18.042.1.0-2vulnerable
Ubunturuby-sanitize18.042.1.0-2+deb9u1build0.18.04.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianruby-sanitizesourcesid4.6.6-1not yet assignedNot reported[893610]
Debianruby-sanitizesourceforky4.6.6-1not yet assignedNot reported[893610]
Debianruby-sanitizesourcetrixie4.6.6-1not yet assignedNot reported[893610]
Debianruby-sanitizesourcebookworm4.6.6-1not yet assignedNot reported[893610]
Ubunturuby-sanitizedeb16.042.1.0-2+deb9u1build0.16.04.1Not reportedUBUNTU-CVE-2018-3740Not reported
Ubunturuby-sanitizedeb18.042.1.0-2+deb9u1build0.18.04.1Not reportedUBUNTU-CVE-2018-3740Not reported

[Debian bug #893610]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Details (4)
    • 6.0.0-1.1+deb12u1 · all · bookworm

      Fixed · Fixed: 4.6.6-1

      dsa · ruby-sanitize · debian · bookworm; dsa · ruby-sanitize · debian · 12

    • 6.0.0-1.1+deb12u1 · all · bookworm

      Fixed · Fixed: 4.6.6-1

      dsa · ruby-sanitize · debian · bookworm; dsa · ruby-sanitize · debian · 12

    • 6.0.0-1.1+deb12u1 · all · bookworm-security

      Fixed · Fixed: 4.6.6-1

      dsa · ruby-sanitize · debian · bookworm; dsa · ruby-sanitize · debian · 12

    • 6.0.0-1.1+deb12u1 · all · bookworm-security

      Fixed · Fixed: 4.6.6-1

      dsa · ruby-sanitize · debian · bookworm; dsa · ruby-sanitize · debian · 12

[Debian 13 (Trixie)]

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

      Fixed · Fixed: 4.6.6-1

      dsa · ruby-sanitize · debian · 13

    • 7.0.0-1 · all · trixie

      Fixed · Fixed: 4.6.6-1

      dsa · ruby-sanitize · debian · 13

Observed:

References