CVE-2026-86434

High

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.

SeverityHigh
CVSS7.5
Exploit probability—
ProductLeague/commonmark
PublishedSep 7, 2026
First seenSep 7, 2026
Weakness typeCWE-407CWE-407

How to fix

Update
  • league/commonmark2.9.0 or later

Affected products

ProductAffected versionsFixed in
league/commonmarkPackagist2.0.0 ≤ v < 2.9.02.9.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.