ZeroHour

CVE-2026-86430

mass

Algorithmic complexity DoS in league/commonmark PHP Markdown parser before 2.9.1

CVSS 4.0
8.7 high
EPSS
<1%p21
Published
()
Modified
AI analysis

league/commonmark, a widely used PHP Markdown parsing library, contains multiple algorithmic-complexity weaknesses (CWE-407) in fenced code block detection, reference link label lookup, and emphasis delimiter processing, causing super-linear CPU consumption on certain inputs. An attacker who can submit Markdown to an application using an affected version can send input with long backtick runs, deeply nested brackets, or long delimiter sequences that make parsing take disproportionate time. The result is denial of service: the parser consumes excessive CPU and delays or blocks legitimate requests, with no confidentiality or integrity impact, consistent with the CVSS 4.0 availability-only high score. Any PHP application, CMS, forum, or API embedding league/commonmark before 2.9.1 and rendering user-supplied Markdown is affected. No exploitation is currently known: EPSS is 0.3%, the flaw is not in CISA KEV, and no public proof-of-concept exists.

What to do: Upgrade league/commonmark to 2.9.1 or later, checking composer.lock and vendor dependency trees since it is frequently pulled in as a transitive dependency. Until patched, limit the size of and rate-limit Markdown accepted from untrusted users, and watch for public PoCs given the low but nonzero EPSS.

Affected
league (The League of Extraordinary Packages) league/commonmark (PHP Markdown parser library)All versions before 2.9.1
Estimated exposure
mass≈100k–1M+ PHP applications embed affected versions (library-ubiquity estimate); practically exposed subset is apps parsing untrusted Markdown — league/commonmark is one of the most-installed PHP packages (hundreds of millions of Packagist downloads and thousands of dependent packages, commonly bundled by PHP frameworks and CMSs), so affected deployments plausibly exceed 100,000…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

league/commonmark versions before 2.9.1 contain multiple denial of service vulnerabilities in fenced code block detection, reference link label lookup, and emphasis delimiter processing that perform super-linear work on crafted input. Attackers can submit specially crafted Markdown with long backtick runs, nested brackets, or delimiter sequences to consume disproportionate CPU time and prevent legitimate requests from completing.

Vendors
thephpleague
Products
commonmark
Weakness
CWE-407
Vector
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

In the news

No ingested article mentions this CVE yet.