comrak is vulnerable to Denial of Service (DoS)
65
Medium Risk
comrak's GFM autolinks extension recurses once per email autolink and rescans the whole URL for each trailing delimiter. Untrusted Markdown with many consecutive email addresses exhausts the thread stack, and a URL followed by many trailing parentheses causes O(n^2) scanning, so small inputs crash or hang the process that parses the Markdown. The fix iterates email autolinking instead of recursing and tracks delimiter counts so parenthesis stripping runs in linear time.
You are affected if you are using a version that falls within the vulnerable range and you parse untrusted Markdown with the autolink extension enabled (part of the gfm option set).
comrak is vulnerable to Denial of Service (DoS) in versions 0.1.0 - 0.54.0.
Upgrade the comrak 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
ISO 42001Compliant© All Intel data is openly available and commercially licensed.