PT-2026-86796

CVE-2026-86430

·

Published

2026-09-01

·

Updated

2026-09-07

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 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:
  1. Fenced code block detection: The FencedCodeStartParser uses a non-atomic lookahead that performs quadratic work when processing long backtick runs.
  2. Reference link label lookup: The CloseBracketParser::tryParseReference() function and ReferenceMap::get() method perform excessive normalization (including trim, preg replace, mb check encoding, and strtolower) on labels. Nested brackets can trigger multiple lookups, resulting in effectively quadratic work.
  3. Delimiter processing: The DelimiterStack::processDelimiters() function, along with EmphasisDelimiterProcessor::getCacheKey(), StrikethroughDelimiterProcessor, and MarkDelimiterProcessor, 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
Researchers
Vendors
Affected products
Related identifiers
GHSA-J8PM-GJ4C-RQ4X
Found an issue in the description? Have something to add? Feel free to write us 👾