marked is vulnerable to Regular Expression Denial of Service (ReDoS)
47
Medium Risk
Affected versions of marked are vulnerable to Regular Expression Denial of Service (ReDoS) due to catastrophic backtracking in the inline link and reference-link label regular expressions. The tokenizer regex used for parsing link labels contains nested alternatives combined with a lazy repetition, which can cause exponential backtracking when processing crafted markdown input (e.g., a [ followed by repeated multi-backtick sequences). This results in excessive CPU consumption and can cause the parser to hang or become unresponsive when handling untrusted markdown content.
You are affected if you are using a version that falls within the vulnerable range.
marked is vulnerable to Regular Expression Denial of Service (ReDoS) in versions 16.4.0 - 17.0.4.
Upgrade the marked 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