CVE-2026-7808
published critical CVSS 4.0 · 9.3justhtml before 1.16.0 Multiple Security Issues via Sanitization
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| EmilStenstrom | — | justhtml0 to < 1.16.0 (affected · semver) · 1.16.0 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | VulnCheck |
Description
justhtml before 1.16.0 contains multiple HTML sanitization bypass issues that can allow active/dangerous content (e.g., script or style) to survive sanitization, potentially leading to cross-site scripting. The issues primarily affect advanced usage rather than the default JustHTML(..., sanitize=True) path for ordinary parsed HTML: mutating or reusing sanitization policy objects (including exported defaults) could weaken later sanitization; programmatic DOM input to sanitize()/sanitize_dom() could miss mixed-case tag names (e.g., ScRiPt, StYlE); crafted programmatic doctype names could serialize into active markup; and custom policies preserving SVG or MathML could allow animation elements, presentation attributes with external url(...) references, or DOM trees mislabeled as namespace="html" to bypass foreign-content checks. Fixed in 1.16.0.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 9.3 / 10
- Severity
- critical
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 9.8 | critical | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| EmilStenstrom | justhtml | 0 to < 1.16.0 (affected · semver)1.16.0 (unaffected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-20 Improper Input Validation
References
2- GitHub Security Advisory (GHSA-4p64-v8f5-r2gx) https://github.com/EmilStenstrom/justhtml/security/advisories/GHSA-4p64-v8f5-r2gx
- VulnCheck Advisory: justhtml before 1.16.0 Multiple Security Issues via Sanitization https://www.vulncheck.com/advisories/justhtml-before-multiple-security-issues-via-sanitization
Provider assertions
2VulnCheck · cna
justhtml before 1.16.0 Multiple Security Issues via Sanitization
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 4f996cdc4ef9463d46a4484e7fa7e21ff8114ed7f3d7d19f4f84051240759e27
- Ingested
- 23 Sep 2026, 09:34:17 UTC
- Source record
- Official CVE record