Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-7808: Improper Input Validation in EmilStenstrom justhtml

0
Critical
VulnerabilityCVE-2026-7808cvecve-2026-7808
Published: 08/23/2026 (08/23/2026, 13:34:13 UTC)
Source: CVE Database V5
Vendor/Project: EmilStenstrom
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Affected software

GitHub Actionsmore threats →ai
emilstenstrom/justhtml
pkg:github/emilstenstrom/justhtml
Affected versions
<1.16.0

Run 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

AILast updated: 08/23/2026, 14:07:19 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses