Submit #637911: turndown npm v7.2.1 Inefficient Regular Expression Complexityinfo

Titleturndown npm v7.2.1 Inefficient Regular Expression Complexity
DescriptionThe vulnerability exists in two rules that use a regular expression with a greedy quantifier (+) followed by an end-of-string anchor ($). When processing a long, specially crafted string that "almost" matches, the regex engine's backtracking can lead to an exponential increase in computation time, causing the application to hang.
Source⚠️ https://github.com/mixmark-io/turndown/issues/501
User
 CrazzyHe (UID 89236)
Submission08/20/2025 04:34 AM (8 months ago)
Moderation08/29/2025 12:05 PM (9 days later)
StatusAccepted
VulDB entry321880 [mixmark-io turndown up to 7.2.1 src/commonmark-rules.js redos]
Points19

Do you want to use VulDB in your project?

Use the official API to access entries easily!