# CVE-2024-34078: html-sanitizer allows arbitrary HTML present after sanitization because of unicode normalization

- Severity: Medium 6.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.56%, higher than 47% of CVEs (2026-12-01)
- Published: 2024-05-06T14:33:32.000Z
- Modified: 2026-09-10T03:50:14.569Z
- Also known as: GHSA-wvhx-q427-fgh3, PYSEC-2026-1455
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- matthiask html-sanitizer: < 2.4.2
- html-sanitizer (PyPI): before 2.4.2

## Every score

- GitHub_M: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: rating High

## References

- <https://github.com/matthiask/html-sanitizer/security/advisories/GHSA-wvhx-q427-fgh3> (web)
- <https://github.com/matthiask/html-sanitizer/commit/48db42fc5143d0140c32d929c46b802f96913550> (web)
- <https://lists.debian.org/debian-lts-announce/2024/08/msg00000.html>
- <https://github.com/matthiask/html-sanitizer> (package)
- <https://pypi.org/project/html-sanitizer> (package)
- <https://github.com/advisories/GHSA-wvhx-q427-fgh3> (advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-34078> (advisory)

## Sources

- CVE List: [CVE-2024-34078](https://www.cve.org/CVERecord?id=CVE-2024-34078), CVE Terms of Use, modified 2024-08-26
- GitHub Advisory Database: [GHSA-wvhx-q427-fgh3](https://github.com/advisories/GHSA-wvhx-q427-fgh3), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-34078](https://nvd.nist.gov/vuln/detail/CVE-2024-34078), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1455](https://osv.dev/vulnerability/PYSEC-2026-1455), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2024-34078 · Whole record: https://cve.day/CVE-2024-34078.json · Rebuilt by cve.day 2026-11-25T22:58:39.996Z
