CVE-2026-6827
Last modified
CVE-2026-6827 is a medium-severity vulnerability rated 6.1/10 on the CVSS scale. 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()). EPSS estimates a 0.19% chance of exploitation in the next 30 days.
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| EmilStenstrom | justhtml | < 1.16.0 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-6827?
How severe is CVE-2026-6827?
How do I fix CVE-2026-6827?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-68264In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2026-68265In the Linux kernel, the following vulnerability has been re…7.3
- CVE-2026-68266In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2026-68267In the Linux kernel, the following vulnerability has been re…
- CVE-2026-68268In the Linux kernel, the following vulnerability has been re…
- CVE-2026-68269In the Linux kernel, the following vulnerability has been re…
- CVE-2026-68270In the Linux kernel, the following vulnerability has been re…
- CVE-2026-68271In the Linux kernel, the following vulnerability has been re…
- CVE-2026-68272In the Linux kernel, the following vulnerability has been re…
- CVE-2026-68273In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2026-68274In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2026-68275In the Linux kernel, the following vulnerability has been re…
Are you affected by CVE-2026-6827?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
