CVE-2026-5751

published 23 Aug 2026 · updated 24 Aug 2026

justhtml before 1.14.0 Mutation XSS via custom sanitization policies

6.1MediumCVSS 6.1EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 1.14.0.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
EmilStenstrom<1.14.01.14.0

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-5751 severity on Zeptric[![CVE-2026-5751](https://zeptric.io/badge/cve/CVE-2026-5751.svg)](https://zeptric.io/cve/CVE-2026-5751)