{"id":"CVE-2024-34078","published":"2024-05-06T14:48:47Z","modified":"2024-08-26T18:03:11Z","title":"html-sanitizer allows arbitrary HTML present after sanitization because of unicode normalization","vendor":"matthiask","product":"html-sanitizer","tier":"tail","description":{"text":"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.\n","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00555,"percentile":0.47242,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/matthiask/html-sanitizer/security/advisories/GHSA-wvhx-q427-fgh3","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/matthiask/html-sanitizer/commit/48db42fc5143d0140c32d929c46b802f96913550","tags":["x_refsource_MISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/08/msg00000.html","tags":[]}],"priority":{"score":13.7,"factors":[{"name":"EPSS percentile","points":9.45},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"matthiask","affectedVersions":[{"vendor":"matthiask","product":"html-sanitizer","versions":["< 2.4.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-05-06T20:39:29.806844Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"html-sanitizer","vulnerableRanges":["<2.4.2"],"patched":["2.4.2"],"from":["GHSA-wvhx-q427-fgh3","PYSEC-2026-1455"],"provenance":"source"}],"summary":{"text":"The html-sanitizer library, an allowlist-based HTML cleaner from matthiask, contains a flaw in its default configuration (keep_typographic_whitespace=False) where it applies Unicode NFKC normalization after sanitization, so certain characters become angle brackets and let crafted HTML bypass the cleaning. An unauthenticated remote attacker can exploit this by supplying specially crafted HTML that gets through the sanitizer, which requires a user to interact with the resulting content.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:42:16Z"},"euvd":{"id":"EUVD-2024-1840","exploited":false,"provenance":"source"}}