-
CVSS Score
-The vulnerability report explicitly identifies makePathPattern in lib/patterns.js as the affected function. The commit diff shows the fix changed the splitting logic from .split('') to .split(/*+/), which collapses consecutive asterisks. This confirms the original implementation created inefficient regex patterns by splitting on every individual '' character, creating redundant quantifiers. The added test case with '/*****************************************************************************.js$' demonstrates the ReDoS scenario the patch addresses.
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| robots-txt-guard | npm | < 1.0.2 | 1.0.2 |