๐Ÿ” CVE Alert

CVE-2026-86434

HIGH 7.5

commonmark 2.0.0 through 2.8.3 Denial of Service via Slug Collision

CVSS Score
7.5
EPSS Score
0.0%
EPSS Percentile
0th

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.

CWE CWE-407
Vendor thephpleague
Product commonmark
Published Sep 7, 2026
Stay Ahead of the Next One

Get instant alerts for thephpleague commonmark

Be the first to know when new high vulnerabilities affecting thephpleague commonmark are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Affected Versions

thephpleague / commonmark
2.0.0 < 2.8.4

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/thephpleague/commonmark/security/advisories/GHSA-mh25-x5hq-wrqp vulncheck.com: https://www.vulncheck.com/advisories/commonmark-2.0.0-through-2.8.3-denial-of-service-via-slug-collision

Credits

GrahamCampbell