Excessive Platform Resource Consumption within a Loop Affecting league/commonmark package, versions >=0.6.0, <2.9.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.35% (28th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PHP-LEAGUECOMMONMARK-18600655
  • published9 Aug 2026
  • disclosed6 Aug 2026
  • creditUnknown

Introduced: 6 Aug 2026

NewCVE-2026-71488  (opens in a new tab)
CWE-1050  (opens in a new tab)
CWE-407  (opens in a new tab)

How to fix?

Upgrade league/commonmark to version 2.9.0 or higher.

Overview

league/commonmark is a PHP-based Markdown parser which supports the full CommonMark spec. It is based on the CommonMark JS reference implementation.

Affected versions of this package are vulnerable to Excessive Platform Resource Consumption within a Loop through the Markdown parsing process. An attacker can exhaust CPU resources and cause service unavailability by submitting specially crafted Markdown input with long lines, non-ASCII characters, or repeated URL-like prefixes. This is only exploitable if untrusted Markdown input is processed.

Workaround

This vulnerability can be mitigated by rejecting or truncating inputs with excessively long individual lines before parsing, enforcing per-line and total request-size limits, restricting conversion to trusted users, applying strict execution-time limits, rate-limiting requests, limiting concurrent conversions, or disabling the AutolinkExtension and avoiding GithubFlavoredMarkdownExtension.

CVSS Base Scores

version 4.0
version 3.1