Intel

AIKIDO-2025-10753

markdown-to-jsx 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 Oct 28, 2025

30

Low Risk

This Affects:

JSmarkdown-to-jsx
1.0.0 - 7.7.17
Fixed in 8.0.0
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to regular expression denial-of-service (ReDoS) attacks due to the use of inefficient regex-based parsing for inline formatting. Crafted markdown input could trigger excessive backtracking, leading to performance degradation or application hangs. The fix replaces the regex-based parser with a custom iterative scanner that runs in linear time and is immune to ReDoS attacks, while also improving handling of nested and escaped formatting.

Who does this affect?

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

Background info

markdown-to-jsx is vulnerable to Regular Expression Denial of Service (ReDoS) in versions 1.0.0 - 7.7.17.

How to fix this

Upgrade the markdown-to-jsx library to the patch version.