CVE-2026-5751Low▾ Sunlitjusthtml: Mutation XSS with custom foreign-namespace sanitization policies
▾ Sunlit zone — Low / medium · no exploitation signal
impact 13.8 · likelihood 0 · exploitation 0
Need a working PoC? Pro members can cast a request and our team develops one — it lands right here.
Exploit-prediction probability, daily snapshots since Aug 24.
Disclosure to exploitation, from the record and what we observed since indexing it.
Disclosed via OSV
Last analysed / modified upstream
0.2%
A parser-differential / mutation XSS issue was found in justhtml when using a custom sanitization policy that preserves foreign namespaces such as SVG or MathML.
Under these custom settings, specially crafted input could sanitize into HTML that looked safe at first, but became unsafe when parsed again by a browser or another HTML parser.
This issue does not affect the default safe configuration.
You may be affected if you use a custom SanitizationPolicy with settings like:
drop_foreign_namespaces=False<style>In that case, an attacker could inject markup that survives sanitization and turns into active HTML after re-parsing.
justhtml <= 1.13.01.14.0Until you upgrade:
drop_foreign_namespaces=True<style> in custom policiesThe default JustHTML(..., sanitize=True) behavior was not found to be vulnerable in this issue.
Discovered by JustHTML author during a LLM-based security review of justhtml.
justhtml >= 1.13.0, < 1.14.0Upgrade to a patched release:
justhtml 1.14.0Connected by shared product, vendor, weakness, or advisory.
CVE-2026-6827Mediumjusthtml has sanitization bypass in custom policies and programmatic DOM
CVE-2026-9769HighUncontrolled recursion DoS in JustHTML() via deeply nested HTML
CVE-2026-4671Lowjusthtml introduces denial-of-service hardening
CVE-2026-8630MediumJustHTML Affected by Mutation XSS via Literal Text Serialization in Raw Text Elements (style/script)
CVE-2026-77088Medium· 6.1justhtml: to_markdown() code-span blank-line breakout enables XSS
CVE-2026-5388Mediumjusthtml includes multiple security fixes