BuzzPHP
LightDarkSystem

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

High severity. Published 1 September 2026. Update league/commonmark to 2.9.1 or later: composer update league/commonmark.

Which versions are affected?

PackageAffected versionsFixed in
league/commonmark (opens in a new tab)>= 0.6.0, < 2.9.12.9.1

What should you do?

Update every affected package you use to its fixed version, then check that nothing else in your project matches an advisory. To see which version you run, and whether anything is still affected:

composer show league/commonmark
composer audit

Advisory details

SeverityHighCVSS 7.5
Published
Updated
GHSAGHSA-j8pm-gj4c-rq4x (opens in a new tab)
WeaknessCWE-407, CWE-1050, CWE-1333

What the advisory says

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.

Source: GHSA-j8pm-gj4c-rq4x (opens in a new tab) in the GitHub Advisory Database (CC BY 4.0). Data from GitHub (opens in a new tab) as of .

Other recent advisories for this package

All Composer security advisories