Skip to main content
EPSS 0.6%top 54%

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 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

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

EmilStenstrom

justhtml

Affected versions
>=0 <1.16.0
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: 09/10/2026, 12:52:45 UTC

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.

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

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 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