Intel

AIKIDO-2025-10843

streamdown is vulnerable to Inefficient Regular Expression Complexity

Inefficient Regular Expression Complexity Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Nov 26, 2025

30

Low Risk

This Affects:

JSstreamdown
0.0.1 - 1.5.1
Fixed in 1.6.0
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to regular expression denial of service (ReDoS) due to inefficient patterns in parse-incomplete-markdown.ts. These expressions allow crafted input to trigger excessive backtracking and degrade performance. The fix removes the vulnerable regexes and replaces them with safer, deterministic string-based parsing logic for handling incomplete links, images, and other partial markdown constructs, eliminating the risk of ReDoS.

Who does this affect?

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

Background info

streamdown is vulnerable to Inefficient Regular Expression Complexity in versions 0.0.1 - 1.5.1.

How to fix this

Upgrade the streamdown library to the patch version.