CVE-2026-86430
massAlgorithmic complexity DoS in league/commonmark PHP Markdown parser before 2.9.1
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.
| league (The League of Extraordinary Packages) league/commonmark (PHP Markdown parser library) | All versions before 2.9.1 |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
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 news0 stories
No ingested article mentions this CVE yet.