CVE-2026-86434
published high CVSS 4.0 · 8.7commonmark 2.0.0 through 2.8.3 Denial of Service via Slug Collision
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| thephpleague | — | commonmark2.0.0 to < 2.8.4 (affected · semver) · 2.8.4 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | VulnCheck |
Description
league/commonmark versions >= 2.0.0 and < 2.8.4 (patched in 2.9.0) contain a denial of service vulnerability in UniqueSlugNormalizer::normalize(), which restarts its numeric-suffix search from 1 on every slug collision, resulting in O(K^2) time complexity for K headings that collapse to the same base slug. The vulnerable path is reached when HeadingPermalinkExtension, FootnoteExtension, or TableOfContentsExtension is registered. An unauthenticated attacker can force many headings onto a single base slug (e.g., via empty ATX headings, identical heading text, or punctuation-only headings) in a small Markdown document, consuming excessive CPU and denying service.
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 |
|---|---|---|---|
| thephpleague | commonmark | 2.0.0 to < 2.8.4 (affected · semver)2.8.4 (unaffected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-407 Inefficient Algorithmic Complexity
References
2- GitHub Security Advisory (GHSA-mh25-x5hq-wrqp) https://github.com/thephpleague/commonmark/security/advisories/GHSA-mh25-x5hq-wrqp
- VulnCheck Advisory: commonmark 2.0.0 through 2.8.3 Denial of Service via Slug Collision https://www.vulncheck.com/advisories/commonmark-2.0.0-through-2.8.3-denial-of-service-via-slug-collision
Provider assertions
2VulnCheck · cna
commonmark 2.0.0 through 2.8.3 Denial of Service via Slug Collision
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 9522405b17b1f31ce168be3affd0beb3682b7c1941545a54a9ffa31a23feb573
- Ingested
- 09 Oct 2026, 16:39:26 UTC
- Source record
- Official CVE record