# league/commonmark: Denial of service via distinctly-named attributes in the Attributes extension

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

Canonical URL: https://buzzphp.com/security/ghsa-8rr7-cvq3-gmfh · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | high (CVSS 7.5) |
| Published | 2026-09-01 |
| Updated | 2026-09-01 |
| GHSA | [GHSA-8rr7-cvq3-gmfh](https://github.com/advisories/GHSA-8rr7-cvq3-gmfh) |
| Weakness | CWE-407, CWE-1050 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| league/commonmark | >= 1.5.0, < 2.10.0 | 2.10.0 |

## What to do

Update league/commonmark to 2.10.0 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

AttributesExtension ships with the library but must be explicitly registered on the Environment; it is not included in CommonMarkConverter, GithubFlavoredMarkdownConverter, or GithubFlavoredMarkdownExtension. Applications that do not register AttributesExtension are not affected by this advisory.

Two paths in the extension re-process every attribute a node has already collected each time another attribute is applied to it. When the attributes carry distinct names, the collected set grows by one on every step and is walked again in full, so a run of n attributes costs O(n²).

1. Attribute nodes resolving to a common target (affected from 1.5.0).



## Links

- [GHSA-8rr7-cvq3-gmfh on GitHub](https://github.com/advisories/GHSA-8rr7-cvq3-gmfh)
- [All Composer security advisories](https://buzzphp.com/security)
