# league/commonmark: Denial of service via crafted code fences, reference links, and emphasis delimiters

High severity, published 2026-09-01. Update league/commonmark to 2.9.1 or later: composer update league/commonmark.

Canonical URL: https://buzzphp.com/security/ghsa-j8pm-gj4c-rq4x · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | high (CVSS 7.5) |
| Published | 2026-09-01 |
| Updated | 2026-09-01 |
| GHSA | [GHSA-j8pm-gj4c-rq4x](https://github.com/advisories/GHSA-j8pm-gj4c-rq4x) |
| Weakness | CWE-407, CWE-1050, CWE-1333 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| league/commonmark | >= 0.6.0, < 2.9.1 | 2.9.1 |

## What to do

Update league/commonmark to 2.9.1 or later: composer update league/commonmark.

Check which version you run with `composer show league/commonmark`, and every affected package with `composer audit`.

## About this advisory

Impact

Affected versions of league/commonmark perform super-linear work on three independent parsing paths, all of which are reachable on a stock new CommonMarkConverter() with default configuration and no extensions registered. Each trigger fits on a single line of input, so no complex Markdown structure is required.

The three paths were introduced at different times. This advisory's version range is their union; the individual ranges are:

| Path | Affected from | Affected through | |---|---|---| | 1. Fenced code block detection | 0.6.0 | 2.9.0 | | 2. Reference link label lookup | 0.6.0 | 2.9.0 | | 3. Emphasis / strikethrough delimiters (, , ~) | 2.6.0 | 2.9.0 | | 3.

## Links

- [GHSA-j8pm-gj4c-rq4x on GitHub](https://github.com/advisories/GHSA-j8pm-gj4c-rq4x)
- [All Composer security advisories](https://buzzphp.com/security)
