Intel

AIKIDO-2025-10753

markdown-to-jsx is vulnerable to Regular Expression Denial of Service (ReDoS)

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Oct 28, 2025
October 28, 2025

30

CVE Score

Low

Regular Expression Denial of Service (ReDoS)

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.

How do I fix this?

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

Who does this affect?

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

Versions

1.0.0 - 7.7.17

Fixed in 8.0.0

Background info

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

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea