{"id":"CVE-2026-71488","published":"2026-08-06T20:37:17Z","modified":"2026-08-07T17:17:05Z","title":"league/commonmark: Quadratic-time denial of service when parsing crafted Markdown","vendor":"thephpleague","product":"commonmark","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0063,"percentile":0.4461,"provenance":"source"},"cwes":[{"id":"CWE-407","name":"Inefficient Algorithmic Complexity"},{"id":"CWE-1050","name":"Excessive Platform Resource Consumption within a Loop"}],"references":[{"url":"https://github.com/thephpleague/commonmark/security/advisories/GHSA-2q4p-g7hv-5rgv","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/thephpleague/commonmark/commit/a6ef6cdc308dfa39a34239c35818e75892a0e6a8","tags":["x_refsource_MISC"]},{"url":"https://github.com/thephpleague/commonmark/commit/a70979ea0d7d3377bd7127536748454a922bf5eb","tags":["x_refsource_MISC"]},{"url":"https://github.com/thephpleague/commonmark/commit/c97b02e5e652b992033b93ba5d6182f706343fc6","tags":["x_refsource_MISC"]},{"url":"https://github.com/thephpleague/commonmark/releases/tag/2.9.0","tags":["x_refsource_MISC"]}],"priority":{"score":14.2,"factors":[{"name":"EPSS percentile","points":8.92},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"thephpleague","affectedVersions":[{"vendor":"thephpleague","product":"commonmark","versions":[">= 0.6.0, < 2.9.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-08-07T17:16:54.394661Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"league/commonmark","vulnerableRanges":[">=0.6.0, <2.9.0"],"patched":["2.9.0"],"from":["GHSA-2q4p-g7hv-5rgv"],"provenance":"source"}],"summary":{"text":"The flaw is an algorithmic-complexity issue in the commonmark component of the thephpleague/commonmark PHP library for parsing and rendering CommonMark Markdown, where several parsing paths, including the Autolink extension, repeatedly rescan growing portions of a line, causing quadratic-time processing. An attacker who can submit Markdown for conversion can send a small crafted request that consumes disproportionate CPU time, with no authentication, no user interaction, and no special configuration required over network access.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:28:55Z"},"euvd":{"id":"EUVD-2026-54143","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-30838","published":"2026-03-07","fixed":"2.8.1","kev":false},{"cve":"CVE-2026-33347","published":"2026-03-24","fixed":"2.8.2","kev":false,"link":{"from":"CVE-2026-33347","to":"CVE-2026-71488","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:league/commonmark","fromFixed":"2.8.2","toFixed":"2.9.0","daysApart":135}]}},{"cve":"CVE-2026-71478","published":"2026-08-06","fixed":"2.9.0","kev":false},{"cve":"CVE-2026-71488","published":"2026-08-06","fixed":"2.9.0","kev":false}],"package":"Packagist:league/commonmark"}}