# CVE-2026-6827: justhtml before 1.17.0 Multiple Cross-Site Scripting Vulnerabilities

- Severity: Medium 5.1 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/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.19%, higher than 8% of CVEs (2026-12-01)
- Published: 2026-04-22T21:25:46.000Z
- Modified: 2026-10-12T16:10:00.220Z
- Also known as: GHSA-vrx2-77f2-ww34
- Weaknesses: CWE-79, CWE-436, CWE-471, CWE-835
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

## Description

justhtml before 1.17.0 contains multiple security issues in sanitization, serialization, and programmatic DOM handling. When custom policies preserve foreign namespaces (SVG/MathML), dangerous content such as HTML integration points (SVG <foreignObject>, MathML <annotation-xml encoding="text/html">) and mutation-XSS parser-differential payloads could survive sanitization and become active HTML after reparse; SVG filter="url(...)" and preserved <style> could leave resource-loading CSS (@import, background-image:url()). Programmatic script/style/Comment nodes could serialize into active markup. Additional hardening fixes address sanitize-pipeline cache mutation and DOM parent/child cycles that could cause infinite loops. Most issues affect advanced or custom configurations rather than the default JustHTML(..., sanitize=True) safe path.

(As written by CVE List.)

## Affected

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

## Every score

- VulnCheck: CVSS:4.0 5.1 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`
- VulnCheck: 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: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:L/SA:N`

## References

- <https://github.com/EmilStenstrom/justhtml/security/advisories/GHSA-vrx2-77f2-ww34> (vendor-advisory, web)
- <https://www.vulncheck.com/advisories/justhtml-before-multiple-cross-site-scripting-vulnerabilities> (third-party-advisory)
- <https://github.com/EmilStenstrom/justhtml> (package)

## Sources

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

---

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