CVE-2023-36823

Sanitize is an allowlist-based HTML and CSS sanitizer. Using carefully crafted input, an attacker may be able to sneak arbitrary HTML and CSS through Sanitize starting with version 3.0.0 and prior to version 6.0.2 when Sanitize is configured to use the built-in "relaxed" config or when using a custom config that allows `style` elements and one or more CSS at-rules. This could result in cross-site scripting or other undesired behavior when the malicious HTML and CSS are rendered in a browser. Sanitize 6.0.2 performs additional escaping of CSS in `style` element content, which fixes this issue. Users who are unable to upgrade can prevent this issue by using a Sanitize config that doesn't allow `style` elements, using a Sanitize config that doesn't allow CSS at-rules, or by manually escaping the character sequence `</` as `<\/` in `style` element content.
Cross-site Scripting
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTNIST
7.1 HIGH
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L
GitHub_MCNA
7.1 HIGH
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L
CVEADP
---
---
Base Score
CVSS 3.x
EPSS Score
Percentile: 43%
VendorProductVersion
sanitize_projectsanitize
3.0.0 ≤
𝑥
< 6.0.2
debiandebian_linux
10.0
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
ruby-sanitize
bullseye (security)
5.2.1-2+deb11u1
fixed
bullseye
5.2.1-2+deb11u1
fixed
bookworm
6.0.0-1.1+deb12u1
fixed
bookworm (security)
6.0.0-1.1+deb12u1
fixed
sid
6.0.2-2
fixed
trixie
6.0.2-2
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
ruby-sanitize
mantic
Fixed 6.0.0-1.1ubuntu0.23.10.1
released
lunar
ignored
kinetic
ignored
jammy
Fixed 6.0.0-1ubuntu0.1
released
focal
Fixed 4.6.6-2.1~0.20.04.2
released
bionic
not-affected
xenial
not-affected
trusty
ignored