🛡️ CVE-2024-34078 — html-sanitizer
Description
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.
How this vulnerability can be exploited
This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. A user must be tricked into taking some action. The scope is changed, meaning a successful attack can affect components beyond the vulnerable one. Rated impact: confidentiality low, integrity low, availability none.
Affected software
CVE-2024-34078 is recorded against 2 packages.
- html-sanitizer (fixed in 2.4.2)
- unknown
Timeline and source
Published on 6 May 2024 and last revised on 7 July 2026. No public exploit is currently recorded for this entry. Record sourced from NVD.
References
CVE-2024-34078 on other distributions
Each distribution ships its own build and its own fixed version. Pick the one you run:
Details
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| html-sanitizer | — | 2.4.2 |
| unknown | — | — |
References
Similar Threats
- Medium CVE-2023-47125
- Medium CVE-2023-38500
- Medium CVE-2022-23499
- Medium CVE-2022-36020
More CVE 2024 advisories
Browse all of CVE 2024 in the advisory index.
Site Security Check
Is html-sanitizer part of your stack?
CVE-2024-34078 is rated CVSS 8.0 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.
Scan My Site Free →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.