CVE Catalog

CVE-2026-86434

HighCVSS 7.5
Published: Translated: NVD NIST

Summary

Denial of service vulnerability in league/commonmark versions >= 2.0.0 and < 2.8.4 (patched in 2.9.0) in UniqueSlugNormalizer::normalize(). On slug collision, the numeric-suffix search restarts from 1, resulting in O(K^2) time complexity for K headings collapsing to the same base slug. The vulnerable path is reached when HeadingPermalinkExtension, FootnoteExtension, or TableOfContentsExtension is registered.

Risk Assessment

An unauthenticated attacker can send a small Markdown document with many headings sharing the same slug, causing excessive CPU consumption and denial of service.

Recommendation

Update league/commonmark to version 2.9.0 or later.

Other vulnerabilities in league/commonmark

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS