Vulnerability

CVE-2026-6827

mediumCVSS 4.0 5.1Published 23 Aug 2026

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

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

The NVD has not attached product data to this record yet; the description names what is affected.

Weakness type

References

  • github.com /EmilStenstrom/justhtml/security/advisories/GHSA-vrx2-77f2-…
  • www.vulncheck.com /advisories/justhtml-before-multiple-cross-site-scripting-v…

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning