# league/commonmark: Denial of service in the SmartPunct and Attributes extensions

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-jjv6-8j6v-6j52 · Data from GitHub as of 2026-11-25.

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

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| league/commonmark | >= 1.5.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

Two first-party extensions contain quadratic parsing paths. Both ship with the library but must be explicitly registered on the Environment; neither is included in CommonMarkConverter, GithubFlavoredMarkdownConverter, or GithubFlavoredMarkdownExtension. Applications that do not register SmartPunctExtension or AttributesExtension are not affected by this advisory.

1. SmartPunctExtension — quote replacement recopies the whole text node (affected from 2.0.0).

ReplaceUnpairedQuotesListener converts each unpaired Quote node back to a Text node and merges it into its neighbours via AdjacentTextMerger.

## Links

- [GHSA-jjv6-8j6v-6j52 on GitHub](https://github.com/advisories/GHSA-jjv6-8j6v-6j52)
- [All Composer security advisories](https://buzzphp.com/security)
