CVE-2026-5751 justhtml before 1.14.0 Mutation XSS via custom sanitization policies
MediumCVSS 5.1
EPSS 0.26%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
Description
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 <style>). 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.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| pypi justhtml | < 1.14.0 | 1.14.0 | Fixed |
| pypi justhtml(PyPI) | = 1.13.0; >= 1.13.0, < 1.14.0 | 1.14.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi justhtml(PyPI) | >= 1.13.0, < 1.14.0 | 1.14.0 |
| pypi justhtml(PyPI) | = 1.13.0 | No fix listed |
| pypi justhtml | < 1.14.0 | 1.14.0 |
References
- GitHub Security Advisory (GHSA-r758-8hxw-4845) vendor-advisory
- github.com patch
- github.com product
- github.com
- VulnCheck Advisory: justhtml before 1.14.0 Mutation XSS via custom sanitization policies third-party-advisory
- github.com
- ENISA EUVD EUVD-2026-64654 third-party-advisory