CVE-2024-34078Cross-site Scripting in Html-sanitizer

Severity
6.1MEDIUMNVD
EPSS
0.2%
top 53.10%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedMay 6

Description

html-sanitizer is an allowlist-based HTML cleaner. If using `keep_typographic_whitespace=False` (which is the default), the sanitizer normalizes unicode to the NFKC form at the end. Some unicode characters normalize to chevrons; this allows specially crafted HTML to escape sanitization. The problem has been fixed in 2.4.2.

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NExploitability: 2.8 | Impact: 2.7

Affected Packages2 packages

PyPItypo3/html-sanitizer< 2.4.2
CVEListV5matthiask/html-sanitizer< 2.4.2

🔴Vulnerability Details

4
GHSA
Arbitrary HTML present after sanitization because of unicode normalization2024-05-06
CVEList
html-sanitizer allows arbitrary HTML present after sanitization because of unicode normalization2024-05-06
OSV
CVE-2024-34078: html-sanitizer is an allowlist-based HTML cleaner2024-05-06
OSV
Arbitrary HTML present after sanitization because of unicode normalization2024-05-06

📋Vendor Advisories

1
Debian
CVE-2024-34078: python-html-sanitizer - html-sanitizer is an allowlist-based HTML cleaner. If using `keep_typographic_wh...2024
CVE-2024-34078 — Cross-site Scripting in Html-sanitizer | cvebase