Skip to main content
← All vulnerabilities
CVE-2026-5751GHSA-R758-8HXW-4845

justhtml before 1.14.0 Mutation XSS via custom sanitization policies

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.14.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • EmilStenstrom justhtml

    fixed in 1.14.0

  • justhtmlPyPI

    From 1.13.0 · fixed in 1.14.0

References 2

GitHub · EmilStenstrom/justhtml

vulncheck.com