Intel

AIKIDO-2026-104018

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

GHSA-g2gp-3wwq-f4phPublished Aug 5, 2026
August 5, 2026

75

CVE Score

High

Denial of Service (DoS)

Are you affected? Scan for Free

TL;DR

With the Attributes extension enabled, the listener that resolves each inline attribute block's target walks outward through all sibling nodes before falling back to the parent. A run of adjacent inline attribute blocks placed at the start of a block makes each resolution scan the whole sibling list, giving quadratic time overall. A small untrusted document of repeated attribute markers can take seconds of CPU to convert, denying service. The fix stops the sibling walk for inline attributes that can only apply to their parent block.

How do I fix this?

Upgrade the league/commonmark library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you use the Attributes extension to render untrusted Markdown input.

Versions

1.5.0 - 2.8.3

Fixed in 2.9.0

Background info

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

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea