markdown-it is vulnerable to Uncontrolled Resource Consumption
42
Medium Risk
markdown-it exposes two quadratic complexity code paths when the non-default linkify option is enabled. Rendering markdown that contains many schema-less emails or unregistered URL schemes causes repeated array rebuilds and regex scans over ever-growing string buffers, so processing time grows with the square of the input size. Crafted markdown can pin a CPU core and block the event loop, denying service to concurrent work. The fix replaces the unbounded scheme scan with a bounded backward scan and removes the quadratic array handling.
You are affected if you are using a version that falls within the vulnerable range and you have enabled the linkify option to render untrusted markdown input.
markdown-it is vulnerable to Uncontrolled Resource Consumption in versions 0.0.1 - 14.3.0 and 15.0.0 - 15.0.0.
Upgrade the markdown-it 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.