Denial of Service in PHP Markdown Parsing Library by The PHP League
CVE-2026-86429
8.7HIGH
What is CVE-2026-86429?
The CommonMark library by The PHP League, specifically versions from 1.5.0 to below 2.9.1, has a vulnerability that allows an unauthenticated attacker to exploit the SmartPunctExtension and AttributesExtension. By sending specially crafted Markdown documents with specific patterns, attackers can trigger quadratic parsing complexity, resulting in excessive CPU consumption and potential service interruptions. This vulnerability poses a risk primarily when these extensions are registered on the Environment, although they are disabled by default. Users are advised to upgrade to version 2.9.1 or later to mitigate this risk.
Affected Version(s)
commonmark 1.5.0 < 2.9.1
commonmark 2.9.1
