CVE-2026-86428
largeAlgorithmic Complexity DoS in thephpleague/commonmark AttributesExtension
league/commonmark versions 1.5.0 through 2.9.x contain a denial-of-service flaw in the optional AttributesExtension, where merging and filtering distinctly-named attributes takes quadratic time (CWE-407). An attacker who can submit Markdown processed by this extension can include a large number of unique attribute names, causing disproportionate CPU consumption that starves the application of resources and prevents legitimate requests from completing. The impact is availability only — no data disclosure or integrity compromise — which is consistent with the CVSS 4.0 score of 8.7 (High) with high availability impact and no confidentiality/integrity impact. Any PHP application using league/commonmark between 1.5.0 and before 2.10.0 that enables the AttributesExtension on attacker-supplied Markdown is affected; deployments that do not enable the extension are not exposed. No public proof-of-concept, CISA KEV listing, or reports of in-the-wild exploitation are known, and EPSS puts 30-day exploitation probability at just 0.3%.
What to do: Upgrade league/commonmark to version 2.10.0 or later, which resolves the quadratic attribute-merging behavior. Where upgrading is not immediately possible, disable the AttributesExtension for untrusted Markdown, or cap Markdown input size and rate-limit rendering endpoints. Check your dependency tree (composer show league/commonmark) to determine whether the installed version falls in the 1.5.0–2.9.x range and whether your application enables the AttributesExtension.
| thephpleague commonmark | >=1.5.0, <2.10.0 (fixed in 2.10.0) |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
commonmark versions from 1.5.0 before 2.10.0 contain a denial of service vulnerability in the AttributesExtension when processing distinctly-named attributes. Attackers can submit Markdown with numerous distinct attribute names to cause quadratic-time attribute merging and filtering, consuming disproportionate CPU resources and preventing 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.