CVE-2026-7808: Improper Input Validation in EmilStenstrom justhtml
justhtml before version 1.16.0 contains multiple HTML sanitization bypass vulnerabilities that can allow dangerous 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 input with mixed-case tags, crafted doctype names, and custom policies preserving SVG or MathML content. The vulnerabilities were fixed in version 1.16.0.
AI Analysis
Technical Summary
The vulnerability in justhtml prior to 1.16.0 involves improper input validation and sanitization bypasses that allow active or dangerous HTML content (e.g., script or style elements) to persist after sanitization. This occurs primarily when sanitization policies are mutated or reused, when programmatic DOM inputs contain mixed-case tag names, when crafted doctype names serialize into active markup, or when custom policies preserve SVG or MathML elements that include animation or external URL references. These flaws can lead to cross-site scripting attacks. The issues do not affect the default sanitization path (JustHTML(..., sanitize=True)) for ordinary parsed HTML. The vulnerabilities were addressed and fixed in version 1.16.0.
Potential Impact
Successful exploitation can result in cross-site scripting (XSS), allowing attackers to inject and execute malicious scripts in the context of affected applications using justhtml versions before 1.16.0. This can lead to compromise of user data, session hijacking, or other client-side attacks. The vulnerability is rated critical with a CVSS 4.0 score of 9.3, indicating high impact and ease of exploitation without privileges or user interaction.
Mitigation Recommendations
Upgrade to justhtml version 1.16.0 or later, where these sanitization bypass issues have been fixed. Users relying on advanced sanitization policies or programmatic DOM inputs should ensure they apply the update to prevent potential cross-site scripting risks. No other official remediation or temporary fixes are indicated. Patch status is confirmed fixed in 1.16.0.
CVE-2026-7808: Improper Input Validation in EmilStenstrom justhtml
Description
justhtml before version 1.16.0 contains multiple HTML sanitization bypass vulnerabilities that can allow dangerous 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 input with mixed-case tags, crafted doctype names, and custom policies preserving SVG or MathML content. The vulnerabilities were fixed in version 1.16.0.
CVSS v4.0
Score 9.3critical
Affected software
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
The vulnerability in justhtml prior to 1.16.0 involves improper input validation and sanitization bypasses that allow active or dangerous HTML content (e.g., script or style elements) to persist after sanitization. This occurs primarily when sanitization policies are mutated or reused, when programmatic DOM inputs contain mixed-case tag names, when crafted doctype names serialize into active markup, or when custom policies preserve SVG or MathML elements that include animation or external URL references. These flaws can lead to cross-site scripting attacks. The issues do not affect the default sanitization path (JustHTML(..., sanitize=True)) for ordinary parsed HTML. The vulnerabilities were addressed and fixed in version 1.16.0.
Potential Impact
Successful exploitation can result in cross-site scripting (XSS), allowing attackers to inject and execute malicious scripts in the context of affected applications using justhtml versions before 1.16.0. This can lead to compromise of user data, session hijacking, or other client-side attacks. The vulnerability is rated critical with a CVSS 4.0 score of 9.3, indicating high impact and ease of exploitation without privileges or user interaction.
Mitigation Recommendations
Upgrade to justhtml version 1.16.0 or later, where these sanitization bypass issues have been fixed. Users relying on advanced sanitization policies or programmatic DOM inputs should ensure they apply the update to prevent potential cross-site scripting risks. No other official remediation or temporary fixes are indicated. Patch status is confirmed fixed in 1.16.0.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-05-04T21:13:37.078Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a8afb27acd9273b49f5f72d
Added to database: 08/23/2026, 13:52:39 UTC
Last enriched: 08/23/2026, 14:07:19 UTC
Last updated: 08/23/2026, 14:59:49 UTC
Views: 5
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.