league/commonmark is vulnerable to Denial of Service (DoS)
75
High Risk
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.
You are affected if you are using a version that falls within the vulnerable range and you convert untrusted Markdown input.
league/commonmark is vulnerable to Denial of Service (DoS) in versions 0.6.0 - 2.9.0.
Upgrade the league/commonmark library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant