PT-2024-25688 · Unknown · Sanitize-Html

Yzueger

·

Published

2024-05-06

·

Updated

2024-08-26

·

CVE-2024-34078

CVSS v3.1

6.1

Medium

VectorAV: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

Weakness Enumeration

Related Identifiers

CVE-2024-34078
DLA-3856-1
GHSA-WVHX-Q427-FGH3

Affected Products

Sanitize-Html