Description
league/commonmark 2.6.0 before 2.10.8 contains a denial of service vulnerability in DelimiterStack::push() that miscounts delimiter runs against the max_delimiters_per_line budget. Attackers submitting Markdown with two long emphasis character runs can produce deeply nested strong elements, causing quadratic rendering time and CPU exhaustion.
Metrics
CVSS 3.1 3.7/10
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:LWeakness enumeration
Affected software
Source: the vendor's advisory (CNA). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| thephpleague | commonmark | >= 2.6.0, < 2.10.8 |
References
- https://github.com/thephpleague/commonmark/blob/2.10.7/src/Delimiter/DelimiterStack.php#L57-L61
- https://github.com/thephpleague/commonmark/commit/eb208506ff62b871d14bf5b086ae83405e23190e
- https://github.com/thephpleague/commonmark/releases/tag/2.10.8
- https://github.com/thephpleague/commonmark/security/advisories/GHSA-h4px-59g8-q37c
- https://www.vulncheck.com/advisories/league-commonmark-2.6.0-before-2.10.8-denial-of-service-via-max-delimiters-per-line-bypass
Timeline
- Published
- Nov 25, 2026
- Last modified
- Dec 4, 2026
- NVD status
- Awaiting Analysis