Parser-Differential XSS Vulnerability in Justhtml by Emil Stenstrom
CVE-2026-5751

5.1MEDIUM

Key Information:

Status
Vendor
CVE Published:
23 August 2026

What is CVE-2026-5751?

Justhtml versions prior to 1.14.0 contain a parser-differential cross-site scripting (mXSS) vulnerability. This issue arises when utilizing a custom SanitizationPolicy that preserves foreign namespaces, particularly when set to drop_foreign_namespaces=False alongside allowlisted SVG/MathML elements or raw-text containers like . Attackers can exploit this vulnerability by crafting special input that is sanitized into markup that deceptively appears safe, but becomes vulnerable during re-parsing by web browsers or other HTML parsers, enabling markup injection. The default configuration (sanitize=True) remains unaffected by this issue. Users are advised to upgrade to version 1.14.0 or later for a resolution.

Affected Version(s)

justhtml 0 < 1.14.0

justhtml 1.14.0

References

CVSS V4

Score:
5.1
Severity:
MEDIUM
Confidentiality:
None
Integrity:
None
Availability:
None
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
Unknown

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

EmilStenstrom
.