justhtml versions 1.13.0 and earlier contain a parser-differential / mutation cross-site scripting (mXSS) vulnerability when using a custom SanitizationPolicy that preserves foreign namespaces (e.g., drop_foreign_namespaces=False with allowlisted SVG/MathML elements or raw-text containers such as ). Specially crafted input can sanitize into markup that appears safe but becomes unsafe when re-parsed by a browser or another HTML parser, allowing markup injection. The default safe configuration (sanitize=True) is not affected. Fixed in 1.14.0.
CVE-2026-5751
Score 6.1 from GitHub Security Advisory published 2026-08-23. a secondary CVSS source baseline 6.1; sources differ by 0.0.
- Lower severity and no public exploit yet
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 6.1
- EG Score
- 6.1(high)
- EG Risk
- 28(Track)EG Risk 28/100SSVC: Track
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity61% × 45%Exploitation0% × 40%Automatability0% × 15%Action: Routine — remediate on your standard cadence. - EPSS PROB
- 0%
- EPSS %ILE
- 8%
- KEV
- Not listed
Published
August 23, 2026
Last Modified
August 26, 2026
Advisory Details (2)
Auto-updated Aug 23, 2026justhtml before 1.14.0 Mutation XSS via custom sanitization policies | Advisories | VulnCheck
https://www.vulncheck.com/advisories/justhtml-before-mutation-xss-via-custom-sanitization-policiesMutation XSS with custom foreign-namespace sanitization policies · Advisory · EmilStenstrom/justhtml · GitHub
https://github.com/EmilStenstrom/justhtml/security/advisories/GHSA-r758-8hxw-4845Vendor Advisories for CVE-2026-5751(1)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Affected Packages
(1 across 1 ecosystem)
PyPI(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| justhtml | 1.13.0 | 1.14.0 | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 15× in last 7d / 15× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-08-26 17:25 UTCEG score recompute
- 2026-08-26 17:25 UTCGHSA enrichment
- 2026-08-26 14:46 UTCEPSS rescore
- 2026-08-25 19:25 UTCEG score recompute
- 2026-08-25 19:25 UTCGHSA enrichment
- 2026-08-25 13:49 UTCEPSS rescore
- 2026-08-24 19:25 UTCEG score recompute
- 2026-08-24 19:25 UTCGHSA enrichment
- 2026-08-24 19:07 UTCEG score recompute
- 2026-08-24 19:07 UTCGHSA enrichment
- 2026-08-24 14:20 UTCEG score recompute
- 2026-08-24 14:20 UTCGHSA enrichment
- 2026-08-23 14:20 UTCEG score recompute
- 2026-08-23 13:51 UTCEG score recompute
- 2026-08-23 13:50 UTCMITRE cvelistV5first tracked
Related CVEs(same CWE)
Frequently asked(5)
What is CVE-2026-5751?
When was CVE-2026-5751 disclosed?
Is CVE-2026-5751 actively exploited?
What is the CVSS score of CVE-2026-5751?
How do I remediate CVE-2026-5751?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2026-5751
Is Your Infrastructure Affected by CVE-2026-5751?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.