PT-2026-79771 · Pypi · Justhtml

·

CVE-2026-5751

·

Published

2026-04-08

·

Updated

2026-08-23

CVSS v3.1

6.1

Medium

VectorAV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Name of the Vulnerable Software and Affected Versions justhtml versions prior to 1.14.0
Description A mutation cross-site scripting (mXSS) issue occurs when using a custom SanitizationPolicy that preserves foreign namespaces, such as setting drop foreign namespaces=False while allowlisting SVG/MathML elements or raw-text containers like <style>. This parser-differential flaw allows specially crafted input to be sanitized into markup that seems safe but becomes unsafe upon re-parsing by a browser or another HTML parser, leading to markup injection. The default safe configuration sanitize=True is not affected.
Recommendations Update to version 1.14.0. As a temporary mitigation, avoid setting drop foreign namespaces=False within the SanitizationPolicy.

Exploit

Fix

XSS

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-5751
GHSA-R758-8HXW-4845

Affected Products

Justhtml