PT-2026-79772 · Pypi · Justhtml
CVSS v3.1
6.1
Medium
| Vector | AV: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.17.0
Description
Security issues exist in sanitization, serialization, and programmatic DOM handling. When custom policies preserve foreign namespaces like SVG or MathML, dangerous content such as HTML integration points (SVG
<foreignObject>, MathML <annotation-xml encoding="text/html">) and mutation-XSS parser-differential payloads may survive sanitization and become active HTML after reparsing. Additionally, SVG filter="url(...)" and preserved <style> tags may allow resource-loading CSS via @import or background-image:url(). Programmatic script, style, or Comment nodes could serialize into active markup. Other issues include sanitize-pipeline cache mutation and DOM parent/child cycles that may lead to infinite loops. These issues primarily affect advanced or custom configurations rather than the default JustHTML(..., sanitize=True) path.Recommendations
Update to version 1.17.0 or later.
Exploit
Fix
XSS
Infinite Loop
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Justhtml