{"id":"CVE-2024-34078","aliases":["CVE-2024-34078","GHSA-wvhx-q427-fgh3","PYSEC-2026-1455"],"related":[],"kind":"vulnerability","state":"published","title":"html-sanitizer allows arbitrary HTML present after sanitization because of unicode normalization","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nIf 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.\n\n### Patches\n\nThe problem has been fixed in 2.4.2.\n\n### Workarounds\n\nSet `keep_typographic_whitespace=True` explicitly, or normalize to NFKC yourself earlier.","format":"markdown","source":"ghsa"},{"lang":"es","text":"html-sanitizer es un limpiador HTML basado en listas permitidas. Si usa `keep_typographic_whitespace=False` (que es el valor predeterminado), el desinfectante normaliza Unicode al formulario NFKC al final. Algunos caracteres Unicode se normalizan como galones; esto permite que el HTML especialmente manipulado escape al saneamiento. El problema se solucionó en 2.4.2.","source":"nvd"}],"published":"2024-05-06T14:33:32.000Z","modified":"2026-09-10T03:50:14.569Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 2.4.2","status":"affected"}],"vendor":"matthiask","product":"html-sanitizer","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.4.2"}],"ecosystem":"PyPI","package":"html-sanitizer","purl":"pkg:pypi/html-sanitizer","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.4.2"}],"ecosystem":"PyPI","package":"html-sanitizer","purl":"pkg:pypi/html-sanitizer","source":"pysec"}],"references":[{"url":"https://github.com/matthiask/html-sanitizer/security/advisories/GHSA-wvhx-q427-fgh3","tags":["web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/matthiask/html-sanitizer/commit/48db42fc5143d0140c32d929c46b802f96913550","tags":["web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/08/msg00000.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://github.com/matthiask/html-sanitizer","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/html-sanitizer","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-wvhx-q427-fgh3","tags":["advisory"],"sources":["pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-34078","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-05-06T20:39:29.806Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-34078","url":"https://www.cve.org/CVERecord?id=CVE-2024-34078","licence":"CVE Terms of Use","modified":"2024-08-26T18:03:11.753Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-wvhx-q427-fgh3","url":"https://github.com/advisories/GHSA-wvhx-q427-fgh3","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:14.569Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-34078","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-34078","licence":"Public domain","modified":"2026-06-17T07:32:51.770Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1455","url":"https://osv.dev/vulnerability/PYSEC-2026-1455","licence":"CC-BY-4.0","modified":"2026-07-07T17:47:44.646Z"}],"updatedAt":"2026-11-25T22:58:39.996Z","epss":{"score":0.00555,"percentile":0.47718,"date":"2026-12-01T12:00:22.000Z"}}