CVE-2024-34078 – html-sanitizer
Package
Manager: pip
Name: html-sanitizer
Vulnerable Version: >=0 <2.4.2
Severity
Level: High
CVSS v3.1: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:U/RC:C
CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
EPSS: 0.00129 pctl0.33074
Details
Arbitrary HTML present after sanitization because of unicode normalization ### Impact 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. ### Patches The problem has been fixed in 2.4.2. ### Workarounds Set `keep_typographic_whitespace=True` explicitly, or normalize to NFKC yourself earlier.
Metadata
Created: 2024-05-06T14:33:32Z
Modified: 2024-05-06T14:33:32Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/05/GHSA-wvhx-q427-fgh3/GHSA-wvhx-q427-fgh3.json
CWE IDs: []
Alternative ID: GHSA-wvhx-q427-fgh3
Finding: F404
Auto approve: 1