CVE-2018-3740

NameCVE-2018-3740
DescriptionA specially crafted HTML fragment can cause Sanitize gem for Ruby to allow non-whitelisted attributes to be used on a whitelisted HTML element.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDSA-4358-1
Debian Bugs893610

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
ruby-sanitize (PTS)jessie2.1.0-1vulnerable
stretch (security), stretch (lts), stretch2.1.0-2+deb9u1fixed
buster4.6.6-2.1~deb10u1fixed
buster (security)4.6.6-2.1~deb10u2fixed
bullseye5.2.1-2fixed
bullseye (security)5.2.1-2+deb11u1fixed
bookworm6.0.0-1.1fixed
bookworm (security)6.0.0-1.1+deb12u1fixed
sid, trixie6.0.2-2fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
ruby-sanitizesourceexperimental4.6.5-1
ruby-sanitizesourcestretch2.1.0-2+deb9u1DSA-4358-1
ruby-sanitizesource(unstable)4.6.6-1893610

Notes

[jessie] - ruby-sanitize <ignored> (Only occurs with libxml2 >= 2.9.2, jessie has 2.9.1)
https://github.com/rgrove/sanitize/issues/176
https://github.com/rgrove/sanitize/commit/01629a162e448a83d901456d0ba8b65f3b03d46e (v4.6.3)
Fixes for 2.1.x: https://github.com/rgrove/sanitize/compare/v2.1.0...v2.1.1
Only an issue in combination with libxml2 >= 2.9.2
The 'fragment' method was renamed from 'clean' method in earlier version
in v3.0.0

Search for package or bug name: Reporting problems