league/commonmark is vulnerable to Denial of Service (DoS)
53
CVE Score
Medium
Denial of Service (DoS)
The XML renderer pretty-prints output by emitting indentation whitespace proportional to each element's nesting depth for every opening and closing tag. For a deeply nested document tree the indentation alone sums to a quadratic number of bytes of output and memory. Converting untrusted Markdown to XML, such as a single line of deeply nested blockquotes, can amplify a small request into a very large response and exhaust memory. The fix caps indentation depth with a configurable maximum so output size grows in proportion to input.
Upgrade the league/commonmark library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and you convert untrusted Markdown to XML output.
2.0.0 - 2.8.3
Fixed in 2.9.0league/commonmark is vulnerable to Denial of Service (DoS) in versions 2.0.0 - 2.8.3.
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.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.