Intel

AIKIDO-2026-531832

markdown-it is vulnerable to Uncontrolled Resource Consumption

Uncontrolled Resource ConsumptionGHSA-253c-mchw-3w2r Published 3 days ago

42

Medium Risk

This Affects:

JSmarkdown-it
0.0.1 - 14.3.0
Fixed in 14.3.1
15.0.0 - 15.0.0
Fixed in 15.0.1
Are you affected? Scan for Free

TL;DR

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.

Who does this affect?

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.

Background info

markdown-it is vulnerable to Uncontrolled Resource Consumption in versions 0.0.1 - 14.3.0 and 15.0.0 - 15.0.0.

How to fix this

Upgrade the markdown-it library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform