markdown-to-jsx is vulnerable to Regular Expression Denial of Service (ReDoS)
30
Low Risk
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.
You are affected if you are using a version that falls within the vulnerable range.
markdown-to-jsx is vulnerable to Regular Expression Denial of Service (ReDoS) in versions 1.0.0 - 7.7.17.
Upgrade the markdown-to-jsx library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant