ZeroHour

CVE-2026-86433

mass

Algorithmic Complexity DoS in league/commonmark Attributes Extension

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

league/commonmark, a widely used PHP Markdown parsing library, versions 1.5.0 through 2.8.3 contain a denial-of-service flaw (CWE-407) in the Attributes extension, where AttributesListener::findTargetAndDirection() rescans the sibling node list in quadratic time as document size grows. An unauthenticated attacker who can get Markdown submitted for parsing can send roughly 32 KB of repeated attribute blocks, pushing a single parse above five seconds and exhausting CPU and server resources with only a small number of requests. The impact is availability only (CVSS 4.0 rates confidentiality and integrity impact as none), but sites that render attacker-supplied Markdown can be degraded or disrupted cheaply. Any PHP application embedding league/commonmark in the affected range with the Attributes extension enabled and parsing untrusted Markdown is affected. There is no known public proof-of-concept, it is not in CISA KEV, and EPSS is low (0.3%), indicating no confirmed exploitation yet.

What to do: Upgrade league/commonmark to 2.8.4 or later (or move out of the 1.5.0-2.8.3 range) via composer; check composer.lock and vendored copies for the installed version. Until patched, disable the Attributes extension or rate-limit and cap the size of untrusted Markdown input (the trigger is only ~32 KB). Prioritize applications where anonymous or unauthenticated users can submit Markdown that the server renders.

Affected
The League of Extraordinary Packages commonmark (league/commonmark PHP Markdown library) - Attributes extension>= 1.5.0, < 2.8.4 (i.e., 1.5.0 through 2.8.3)
Estimated exposure
masshundreds of thousands of PHP deployments (estimate; practical subset = apps parsing untrusted Markdown with the Attributes extension enabled) — league/commonmark is one of the most-downloaded PHP packages (hundreds of millions of Composer installs and bundled as the default Markdown parser in major PHP frameworks), so well over 100,000 installations plausibly carry a vulnerable…

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.8.4 contain a denial of service vulnerability in the Attributes extension where AttributesListener::findTargetAndDirection() performs quadratic-time sibling list scanning. Unauthenticated attackers can submit approximately 32 KB of repeated attribute blocks to cause parsing to take over 5 seconds, exhausting server resources.

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.