CVE-2026-86434

HIGH CVSS 4.0: 8.7 EPSS 0.51%
Updated Oct 08, 2026
Thephpleague
Parameter Value
CVSS 8.7 (HIGH)
Affected Versions 2.0.0 — 2.8.4
Fixed In 2.9.0
Type CWE-407
Vendor Thephpleague
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Attack Requirements
None
No additional conditions
Privileges Required
None
No privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
None
No data leak
Integrity
None
No data modification
Availability
High
Complete denial of service

CVSS Vector v4.0

Weakness Type (CWE)

Vulnerable Products 1

Configuration From (including) Up to (excluding)
Thephpleague Commonmark
cpe:2.3:a:thephpleague:commonmark:*:*:*:*:*:*:*:*
2.0.0 2.8.4