Loading advisory.
Loading advisory.
league/commonmark's quadratic complexity bugs may lead to a denial of service
Several polynomial time complexity issues in league/commonmark may lead to unbounded resource exhaustion and subsequent denial of service.
Published 2024-12-09 20:42 UTC · Modified 2026-10-08 15:21 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| league/commonmark | Packagist | < 2.6.0 versions 0.1.0, 0.1.1, 0.1.2, 0.10.0, 0.11.0, 0.11.1, 0.11.2, 0.11.3, 0.12.0, 0.13.0, 0.13.1, 0.13.2, 0.13.3, 0.13.4, 0.14.0, 0.15.0, 0.15.1, 0.15.2, 0.15.3, 0.15.4 and 111 more | 2.6.0 | composer require 'league/commonmark:>=2.6.0' |
Several polynomial time complexity issues in league/commonmark may lead to unbounded resource exhaustion and subsequent denial of service.
Malicious users could trigger that inefficient code with carefully crafted Markdown inputs that are specifically designed to ensure the worst-case performance is reached. Sending multiple such requests in parallel could tie up all available CPU resources and/or PHP-FPM processes, leading to denial of service for legitimate users.
These vulnerabilities have been patched in version 2.6.0. All users on older versions are highly encouraged to upgrade as soon as possible.
If you cannot upgrade, you may be able to mitigate the issues by:
Setting very low memory_limit and max_execution_time PHP configurations to prevent runaway resource usage
Implementing rate-limiting, bot protection, or other approaches to reduce the risk of simultaneous bad requests hitting your site
Limiting the size of inputs fed into this library (specifically the max length of each line)
Limiting the use of this library to trusted users
Most of these issues were discovered in other Markdown parsers. You can read more about them here:
https://github.com/commonmark/commonmark.js/issues/129
https://github.com/commonmark/commonmark.js/issues/157
https://github.com/commonmark/commonmark.js/issues/172
https://github.com/github/cmark-gfm/security/advisories/GHSA-r572-jvj2-3m8p
https://github.com/github/cmark-gfm/security/advisories/GHSA-24f7-9frr-5h2r
https://github.com/github/cmark-gfm/security/advisories/GHSA-29g3-96g3-jg6c
https://github.com/github/cmark-gfm/security/advisories/GHSA-r8vr-c48j-fcc5
https://github.com/github/cmark-gfm/security/advisories/GHSA-w4qg-3vf7-m9x5
https://github.com/github/cmark-gfm/security/advisories/GHSA-66g8-4hjf-77xh
For general information about this type of issue:
https://en.wikipedia.org/wiki/Time_complexity
https://cwe.mitre.org/data/definitions/407.html
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
One EPSS score on record: 0.005 on 2026-11-24.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.005 | first score | v2026.06.15 |