CVE-2026-7808: Improper Input Validation in EmilStenstrom justhtml
Description
justhtml versions prior to 1.16.0 contain multiple HTML sanitization bypass vulnerabilities that may allow active content such as scripts or styles to survive sanitization, potentially leading to cross-site scripting (XSS). These issues mainly affect advanced usage scenarios involving mutation or reuse of sanitization policies, programmatic DOM inputs with mixed-case tags, crafted doctype names, and custom policies preserving SVG or MathML content. The vulnerabilities are fixed in version 1.16.0.
CVSS v4.0
Score 9.3critical
Affected software
EmilStenstrom
justhtml
pkg:github/emilstenstrom/justhtmlRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
justhtml before 1.16.0 has multiple HTML sanitization bypass issues that can allow dangerous active content (e.g., script or style elements) to survive sanitization, potentially enabling cross-site scripting attacks. The vulnerabilities arise primarily in advanced use cases such as mutating or reusing sanitization policy objects, handling programmatic DOM inputs with mixed-case tag names, crafted doctype names that serialize into active markup, and custom policies that preserve SVG or MathML content allowing animation elements or external URL references to bypass foreign-content checks. These issues do not generally affect the default sanitization path (JustHTML(..., sanitize=True)). The issues are resolved in version 1.16.0.
Potential Impact
The vulnerability can lead to cross-site scripting (XSS) by allowing active and dangerous HTML content to bypass sanitization in affected versions. This can result in execution of malicious scripts or styles in the context of the affected application, potentially compromising user data or application integrity. The CVSS 4.0 score is 9.3 (critical), indicating high impact with network attack vector, no privileges or user interaction required, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Upgrade justhtml to version 1.16.0 or later, where these sanitization bypass issues have been fixed. No other mitigation is indicated or required as the fix addresses the root cause.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-05-04T21:13:37.078Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a8afb27acd9273b49f5f72d
Added to database: 08/23/2026, 13:52:39 UTC
Last enriched: 09/10/2026, 12:52:45 UTC
Last updated: 10/06/2026, 18:48:25 UTC
Views: 149
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.