Vulnerability · Published Aug 6, 2026 · Assigned by GitHub_M

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

High 7.5

In plain English

A high-severity security flaw in commonmark from thephpleague. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 50% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)0.6%top 49.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12php-league-commonmarkno fix listedDEBIAN-CVE-2026-71488
Debian:13php-league-commonmarkno fix listedDEBIAN-CVE-2026-71488
Debian:14php-league-commonmark2.9.0-1DEBIAN-CVE-2026-71488
Packagistleague/commonmark2.9.0GHSA-2q4p-g7hv-5rgv
Ubuntu:22.04:LTScommonmarkno fix listedUBUNTU-CVE-2026-71488
Ubuntu:24.04:LTScommonmarkno fix listedUBUNTU-CVE-2026-71488
Ubuntu:26.04:LTScommonmarkno fix listedUBUNTU-CVE-2026-71488
Ubuntu:26.10commonmarkno fix listedUBUNTU-CVE-2026-71488
Ubuntu:22.04:LTSmarkdownno fix listedUBUNTU-CVE-2026-71488
Ubuntu:24.04:LTSmarkdownno fix listedUBUNTU-CVE-2026-71488
Ubuntu:26.04:LTSmarkdownno fix listedUBUNTU-CVE-2026-71488
Ubuntu:26.10markdownno fix listedUBUNTU-CVE-2026-71488

Affected products (as reported)

VendorProductVersions
thephpleague commonmark >= 0.6.0, < 2.9.0

Weakness: CWE-407, CWE-1050 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References