PT-2024-25688 · Unknown · Sanitize-Html
Yzueger
·
Published
2024-05-06
·
Updated
2024-08-26
·
CVE-2024-34078
CVSS v3.1
6.1
Medium
| Vector | AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Name of the Vulnerable Software and Affected Versions
html-sanitizer versions prior to 2.4.2
Description
The issue concerns 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.Recommendations
For versions prior to 2.4.2, update to version 2.4.2 to resolve the issue.
As a temporary workaround, consider setting
keep typographic whitespace=True explicitly, or normalize to NFKC yourself earlier.Exploit
Fix
XSS
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Sanitize-Html