CVE-2026-5751

MEDIUM CVSS 4.0: 5.1 EPSS 0.26%
Updated Oct 12, 2026
Emilstenstrom
Parameter Value
CVSS 5.1 (MEDIUM)
Fixed In 1.14.0
Type CWE-79 (Cross-Site Scripting (XSS))
Vendor Emilstenstrom
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Attack Requirements
None
No additional conditions
Privileges Required
None
No privileges needed
User Interaction
Active
User action required

Impact Assessment

Confidentiality
None
No data leak
Integrity
None
No data modification
Availability
None
No disruption

CVSS Vector v4.0

Vulnerable Products

emilstenstrom:justhtml