Skip to content
OpenAdvisories
High · 7.5 CVE-2026-71488 EUVD-2026-54143GHSA-2q4p-g7hv-5rgv

league/commonmark: Quadratic-time denial of service when parsing crafted Markdown

Published Aug 6, 2026 · Updated Aug 7, 2026 · Assigned by GitHub_M

Description

league/commonmark is a PHP library for parsing and rendering CommonMark Markdown. From 0.6.0 until 2.9.0, specially crafted Markdown lines can cause the parser to have quadratic time complexity when converting, because several parsing paths repeatedly rescan growing portions of a line to translate between character positions and byte positions, and the Autolink extension can also copy and validate the remaining line at every URL-like prefix, allowing an attacker who can submit Markdown for conversion to consume disproportionate CPU time with a comparatively small request. This issue is fixed in 2.9.0.

Affected products

VendorProductAffectedFixed
thephpleague commonmark >= 0.6.0, < 2.9.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 php-league-commonmark 2.9.0-1 —
Debian 13 php-league-commonmark No fix yet —
Debian 12 php-league-commonmark No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 markdown +1 No fix yet —
Ubuntu 26.04 LTS markdown +1 No fix yet —
Ubuntu 24.04 LTS markdown +1 No fix yet —
Ubuntu 22.04 LTS markdown +1 No fix yet —
Ubuntu 20.04 LTS markdown No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS markdown No fix yet —
Ubuntu 16.04 LTS markdown No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist league/commonmark >= 0.6.0, < 2.9.0 2.9.0 GHSA-2q4p-g7hv-5rgv

References