CVE-2026-4671
published high CVSS 4.0 · 8.7justhtml before 1.18.0 Denial of Service via CSS Selector
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| EmilStenstrom | — | justhtml0 to < 1.18.0 (affected · semver) · 1.18.0 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | VulnCheck |
Description
justhtml before 1.18.0 contains multiple low-severity denial-of-service issues in CSS selector handling and linkification. Applications that evaluate attacker-controlled selector strings (via query(), matches(), or selector-based transforms), run selector matching over very large untrusted documents, construct DOM trees from untrusted structure, or enable linkification over attacker-controlled text may consume disproportionate CPU or memory. Triggers include oversized selectors, large selector lists, oversized compound selectors, long combinator chains, deeply nested functional pseudo-classes, repeated token/positional matching, cyclic DOM graphs causing non-terminating traversal, and punctuation-heavy or trailing-bracket linkification input. These are availability-only concerns and do not by themselves allow script execution, data disclosure, or sanitizer bypass. Default JustHTML(sanitize=True) usage is not expected to be exposed, since selectors are normally supplied by application code.
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
- 8.7 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.5 | high | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/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.18.0 (affected · semver)1.18.0 (unaffected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-400 Uncontrolled Resource Consumption
References
2- GitHub Security Advisory (GHSA-r8cj-3554-33mr) https://github.com/EmilStenstrom/justhtml/security/advisories/GHSA-r8cj-3554-33mr
- VulnCheck Advisory: justhtml before 1.18.0 Denial of Service via CSS Selector https://www.vulncheck.com/advisories/justhtml-before-denial-of-service-via-css-selector
Provider assertions
2VulnCheck · cna
justhtml before 1.18.0 Denial of Service via CSS Selector
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- f88436842cb0f8584c4e99f810ae4eeb5f6c0cadbdefe8f9ea0529bf861c6c67
- Ingested
- 23 Sep 2026, 09:18:37 UTC
- Source record
- Official CVE record