CVE-2023-36823: Sanitize vulnerable to Cross-site Scripting via insufficient neutralization of `style` element content
Vulnerability summary
CVE-2023-36823 is a high (CVSS 7.1) vulnerability in debian debian_linux. EPSS estimates a 0.71% chance of exploitation in the next 30 days, higher than 54.9% of scored vulnerabilities.
Not severe (CVSS 7.1, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 1 · Related 1Timeline
- 06-07-2023PublishedVulnerability first disclosed.
- 13-02-2025Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
5 scores · 5 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated7.1HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L
- OSV · DebianEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NDiffers
- OSV · RubygemsEcosystem advisory · calculated7.1HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L
- NVDNIST6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NDiffers
EPSS trend
Probability
0.71%
Chance of exploitation in the next 30 days
Percentile
55%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.71% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Debian2 products
- ruby-sanitize< 6.0.2-1 | < 4.6.6-2.1~deb10u2 | < 5.2.1-2+deb11u1 | < 6.0.0-1.1+deb12u1
- debian_linuxEOL10.0
Rgrove1 product
- sanitize≥ 3.0.0, < 6.0.2
RubyGems1 product
- sanitize≥ 3.0.0, < 6.0.2
Sanitize_project1 product
- sanitize≥ 3.0.0, < 6.0.2
Ubuntu1 product
- ruby-sanitize< 4.6.6-2.1~0.20.04.2 | < 6.0.0-1ubuntu0.1
5 vendors · 6 products
References
11 links- github.com/rgrove/sanitize/security/advisories/GHSA-f5ww-cq3m-q3g7X Refsource CONFIRMREPORTWEBVendor Advisory
- github.com/rgrove/sanitize/commit/76ed46e6dc70820f38efe27de8dabd54dddb5220X Refsource MISCREPORTWEBPatch
- github.com/rgrove/sanitizePACKAGE