Skip to main content
← All vulnerabilities
CVE-2026-71488GHSA-2Q4P-G7HV-5RGV

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.9.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • thephpleague commonmark

    From 0.6.0 · fixed in 2.9.0

  • league/commonmarkPackagist

    From 0.6.0 · fixed in 2.9.0

References 5

GitHub · thephpleague/commonmark