Skip to content
OpenAdvisories
Medium · 6.1 CVE-2026-6827 EUVD-2026-64655GHSA-f8m6-5gph-fw7fGHSA-vrx2-77f2-ww34

justhtml before 1.17.0 Multiple Cross-Site Scripting Vulnerabilities

Published Aug 23, 2026 · Updated Aug 29, 2026 · Assigned by VulnCheck

Description

justhtml before 1.17.0 contains multiple security issues in sanitization, serialization, and programmatic DOM handling. When custom policies preserve foreign namespaces (SVG/MathML), dangerous content such as HTML integration points (SVG <foreignObject>, MathML <annotation-xml encoding="text/html">) and mutation-XSS parser-differential payloads could survive sanitization and become active HTML after reparse; SVG filter="url(...)" and preserved <style> could leave resource-loading CSS (@import, background-image:url()). Programmatic script/style/Comment nodes could serialize into active markup. Additional hardening fixes address sanitize-pipeline cache mutation and DOM parent/child cycles that could cause infinite loops. Most issues affect advanced or custom configurations rather than the default JustHTML(..., sanitize=True) safe path.

Affected products

VendorProductAffectedFixed
EmilStenstrom justhtml < 1.17.0 1.17.0

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI justhtml < 1.17.0 1.17.0 GHSA-vrx2-77f2-ww34

References