CVE-2026-6827

published 23 Aug 2026 · updated 29 Aug 2026

justhtml before 1.17.0 Multiple Cross-Site Scripting Vulnerabilities

6.1MediumCVSS 6.1EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 1.17.0.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
EmilStenstrom<1.17.01.17.0

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-6827 severity on Zeptric[![CVE-2026-6827](https://zeptric.io/badge/cve/CVE-2026-6827.svg)](https://zeptric.io/cve/CVE-2026-6827)