CVE-2024-34078

Medium

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.

SeverityMedium
CVSS6.1
Exploit probability—
ProductHtml-sanitizer
PublishedMay 6, 2024
First seenMay 6, 2024

How to fix

Update
  • html-sanitizer2.4.2 or later

Affected products

ProductAffected versionsFixed in
html-sanitizerPyPIv < 2.4.22.4.2

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.