Intel

AIKIDO-2026-319775

league/commonmark is vulnerable to Denial of Service (DoS)

Denial of Service (DoS)GHSA-j8pm-gj4c-rq4x Published Aug 11, 2026

75

High Risk

This Affects:

PHPleague/commonmark
0.6.0 - 2.9.0
Fixed in 2.9.1
Are you affected? Scan for Free

TL;DR

The parser performs linear work on three paths that are reachable with default configuration: fenced code block detection, shortcut and collapsed reference link label lookup, and emphasis, strikethrough, and highlight delimiter processing. Each trigger fits on a single line, so crafted Markdown forces catastrophic regex backtracking, repeated normalization of long labels, or an unbounded delimiter cache key space. Converting a small crafted input can exhaust available workers so legitimate requests fail. The fix makes the fence quantifier possessive, applies the reference label length limit before normalization, and clamps delimiter cache keys to a bounded bucket.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you convert untrusted Markdown input.

Background info

league/commonmark is vulnerable to Denial of Service (DoS) in versions 0.6.0 - 2.9.0.

How to fix this

Upgrade the league/commonmark library to the patch version.