markdown-to-jsx is vulnerable to Regular Expression Denial of Service (ReDoS)
30
CVE Score
Low
Regular Expression Denial of Service (ReDoS)
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.
Upgrade the markdown-to-jsx library to the patch version.
You are affected if you are using a version that falls within the vulnerable range.
1.0.0 - 7.7.17
Fixed in 8.0.0markdown-to-jsx is vulnerable to Regular Expression Denial of Service (ReDoS) in versions 1.0.0 - 7.7.17.
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.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.