Intel

AIKIDO-2026-10452

marked is vulnerable to Regular Expression Denial of Service (ReDoS)

Regular Expression Denial of Service (ReDoS) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Apr 1, 2026

47

Medium Risk

This Affects:

jsmarked
16.4.0 - 17.0.4
Fixed in 17.0.5
Are you affected? Scan for Free

TL;DR

Affected versions of marked are vulnerable to Regular Expression Denial of Service (ReDoS) due to catastrophic backtracking in the inline link and reference-link label regular expressions. The tokenizer regex used for parsing link labels contains nested alternatives combined with a lazy repetition, which can cause exponential backtracking when processing crafted markdown input (e.g., a [ followed by repeated multi-backtick sequences). This results in excessive CPU consumption and can cause the parser to hang or become unresponsive when handling untrusted markdown content.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

marked is vulnerable to Regular Expression Denial of Service (ReDoS) in versions 16.4.0 - 17.0.4.

How to fix this

Upgrade the marked library to the patch version.