PT-2026-86796
CVE-2026-86430
·
Published
2026-09-01
·
Updated
2026-09-07
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 prior to 2.9.1
Description
Multiple issues in the parsing process can lead to a denial of service. An unauthenticated attacker can submit specially crafted Markdown to consume disproportionate CPU time, potentially occupying all available PHP workers and preventing legitimate requests from completing. The issues occur across three independent parsing paths:
- Fenced code block detection: The
FencedCodeStartParseruses a non-atomic lookahead that performs quadratic work when processing long backtick runs. - Reference link label lookup: The
CloseBracketParser::tryParseReference()function andReferenceMap::get()method perform excessive normalization (includingtrim,preg replace,mb check encoding, andstrtolower) on labels. Nested brackets can trigger multiple lookups, resulting in effectively quadratic work. - Delimiter processing: The
DelimiterStack::processDelimiters()function, along withEmphasisDelimiterProcessor::getCacheKey(),StrikethroughDelimiterProcessor, andMarkDelimiterProcessor, uses unbounded cache keys based on delimiter run lengths. This forces full backward re-scans of openers, resulting in super-linear work (approximately n^1.5).
Recommendations
Update league/commonmark to version 2.9.1 or later.
As a temporary workaround, enforce a maximum length for individual lines of input before passing them to the converter.
Restrict Markdown conversion to trusted users, apply strict execution-time limits, and implement rate-limiting for requests.
Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Found an issue in the description? Have something to add? Feel free to write us 👾