Intel

AIKIDO-2025-10387

@milkdown/transformer 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 Jun 20, 2025

36

Low Risk

This Affects:

JS@milkdown/transformer
7.5.5 - 7.13.1
Fixed in 7.13.2
Are you affected? Scan for Free

TL;DR

The affected versions use a polynomial-time regular expression within the moveSpaces function, which can lead to performance issues when processing specially crafted input. Specifically, the regular expression exhibits catastrophic backtracking, where certain patterns cause the regex engine to perform excessive computations. An attacker could exploit this by supplying input that triggers worst-case performance, leading to high CPU usage and making the application vulnerable to Regular Expression Denial of Service (ReDoS) attacks. This type of vulnerability can degrade system performance or make the application temporarily unavailable.

Who does this affect?

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

Background info

@milkdown/transformer is vulnerable to Regular Expression Denial of Service (ReDoS) in versions 7.5.5 - 7.13.1.

How to fix this

Upgrade the @milkdown/transformer library to the patch version.