PT-2026-86795

CVE-2026-86429

·

Published

2026-09-01

·

Updated

2026-09-19

Description by

CVSS 4.0
8.7
High
MetricsAV: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, the ReplaceUnpairedQuotesListener recopies the entire text node during the merge of unpaired quotes via AdjacentTextMerger.
  • In AttributesExtension, the AttributesListener::findTargetAndDirection() function re-scans sibling chains for contiguous runs of block-level Attributes nodes.
  • In AttributesExtension, the AttributesHelper::mergeAttributes() function repeatedly rebuilds class lists using explode and implode during 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
Researchers
Vendors
Affected products
Related identifiers
GHSA-JJV6-8J6V-6J52
Found an issue in the description? Have something to add? Feel free to write us 👾