# CVE-2026-7808: justhtml before 1.16.0 Multiple Security Issues via Sanitization

- Severity: Critical 9.3 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA: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.35%, higher than 30% of CVEs (2026-12-01)
- Published: 2026-04-14T20:05:10.000Z
- Modified: 2026-10-12T16:10:00.220Z
- Also known as: GHSA-4p64-v8f5-r2gx
- Weaknesses: CWE-20, CWE-79, CWE-178, CWE-436, CWE-471
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: VulnCheck

## Description

justhtml before 1.16.0 contains multiple HTML sanitization bypass issues that can allow active/dangerous content (e.g., script or style) to survive sanitization, potentially leading to cross-site scripting. The issues primarily affect advanced usage rather than the default JustHTML(..., sanitize=True) path for ordinary parsed HTML: mutating or reusing sanitization policy objects (including exported defaults) could weaken later sanitization; programmatic DOM input to sanitize()/sanitize_dom() could miss mixed-case tag names (e.g., ScRiPt, StYlE); crafted programmatic doctype names could serialize into active markup; and custom policies preserving SVG or MathML could allow animation elements, presentation attributes with external url(...) references, or DOM trees mislabeled as namespace="html" to bypass foreign-content checks. Fixed in 1.16.0.

(As written by CVE List.)

## Affected

- EmilStenstrom justhtml: before 1.16.0 (not affected: 1.16.0)
- justhtml (PyPI): before 1.16.0

## Every score

- VulnCheck: CVSS:4.0 9.3 Critical `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 Low `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:U`

## References

- <https://github.com/EmilStenstrom/justhtml/security/advisories/GHSA-4p64-v8f5-r2gx> (vendor-advisory, web)
- <https://www.vulncheck.com/advisories/justhtml-before-multiple-security-issues-via-sanitization> (third-party-advisory)
- <https://github.com/EmilStenstrom/justhtml> (package)

## Sources

- CVE List: [CVE-2026-7808](https://www.cve.org/CVERecord?id=CVE-2026-7808), CVE Terms of Use, modified 2026-08-24
- GitHub Advisory Database: [GHSA-4p64-v8f5-r2gx](https://github.com/advisories/GHSA-4p64-v8f5-r2gx), CC-BY-4.0, modified 2026-08-24
- NVD: [CVE-2026-7808](https://nvd.nist.gov/vuln/detail/CVE-2026-7808), Public domain, modified 2026-10-12

---

Page: https://cve.day/CVE-2026-7808 · Whole record: https://cve.day/CVE-2026-7808.json · Rebuilt by cve.day 2026-11-25T22:59:34.969Z
