league/commonmark 2.6.0 before 2.10.8 Denial of Service via max_delimiters_per_line Bypass
- State
- Published
- Severity
- 6.3 Medium
- Published
- Nov 25, 2026
- Updated
- Nov 25, 2026
- Reserved
- Nov 24, 2026
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.
| Product | Versions |
|---|---|
| commonmark thephpleague | 2.6.0 to before 2.10.8 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 6.3 Medium | VulnCheck | |
| 3.1 | 3.7 Low | VulnCheck |
Weaknesses
- CWE-770 Allocation of Resources Without Limits or Throttling
References
- GitHub Security Advisory (GHSA-h4px-59g8-q37c)Vendor Advisory
- https://github.com/thephpleague/commonmark/commit/eb208506ff62b871d14bf5b086ae83405e23190ePatch
- commonmark 2.10.8 Release NotesRelease Notes
- https://github.com/thephpleague/commonmark/blob/2.10.7/src/Delimiter/DelimiterStack.php#L57-L61Technical Details
- VulnCheck Advisory: league/commonmark 2.6.0 before 2.10.8 Denial of Service via max_delimiters_per_line BypassThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.