Skip to main content
← All vulnerabilities
CVE-2026-6827GHSA-VRX2-77F2-WW34

justhtml before 1.17.0 Multiple Cross-Site Scripting Vulnerabilities

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.17.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • EmilStenstrom justhtml

    fixed in 1.17.0

  • justhtmlPyPI

    fixed in 1.17.0

References 2

GitHub · EmilStenstrom/justhtml

vulncheck.com