league/commonmark is vulnerable to Denial of Service (DoS)
53
Medium Risk
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.
You are affected if you are using a version that falls within the vulnerable range and you convert untrusted Markdown to XML output.
league/commonmark is vulnerable to Denial of Service (DoS) in versions 2.0.0 - 2.8.3.
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