ZeroHour

CVE-2026-86428

large

Algorithmic Complexity DoS in thephpleague/commonmark AttributesExtension

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

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.

Affected
thephpleague commonmark>=1.5.0, <2.10.0 (fixed in 2.10.0)
Estimated exposure
large≈100,000+ PHP applications (library has hundreds of millions of lifetime Packagist downloads), though practical exposure is limited to those enabling… — league/commonmark is among the most widely downloaded PHP Markdown parsers on Packagist and is embedded in many frameworks and CMS-driven sites, so the deployed base plausibly exceeds 100k applications, but the vulnerable code path only…

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

Description

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 news

No ingested article mentions this CVE yet.