PT-2026-86795
CVE-2026-86429
·
Published
2026-09-01
·
Updated
2026-09-19
Description by
CVSS 4.0
8.7
HighMetricsAV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions
league/commonmark versions 1.5.0 through 2.9.0
Description
The
SmartPunctExtension and AttributesExtension contain quadratic parsing complexity. An unauthenticated attacker can submit specially crafted Markdown documents to trigger disproportionate CPU consumption, leading to a denial of service by occupying PHP workers. This occurs when these extensions are explicitly registered on the Environment.Technical details include:
- In
SmartPunctExtension, theReplaceUnpairedQuotesListenerrecopies the entire text node during the merge of unpaired quotes viaAdjacentTextMerger. - In
AttributesExtension, theAttributesListener::findTargetAndDirection()function re-scans sibling chains for contiguous runs of block-levelAttributesnodes. - In
AttributesExtension, theAttributesHelper::mergeAttributes()function repeatedly rebuilds class lists usingexplodeandimplodeduring each merge.
Recommendations
Update league/commonmark to version 2.9.1 or later.
As a temporary workaround, do not register
SmartPunctExtension or AttributesExtension when converting untrusted Markdown.
As a temporary workaround, impose a strict maximum input length before conversion to bound worst-case CPU time.Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Found an issue in the description? Have something to add? Feel free to write us 👾