path-to-regexp is vulnerable to Regular Expression Denial of Service (ReDoS)
77
High Risk
The patched version adds a strict option to detect potential ReDoS issues. A bad regular expression is generated whenever two parameters within a single segment are separated by something other than a period (.). For example, /:a-:b.
You are affected if you are using a version that falls within the vulnerable range.
path-to-regexp is vulnerable to Regular Expression Denial of Service (ReDoS) in versions 0.1 - 0.1.11, 0.2.0 - 1.8.0, 2.0.0 - 3.2.0, 4.0.0 - 6.2.2 and 7.0.0 - 7.0.0.
Upgrade the path-to-regexp library to the patched version. For patch version 7.1.0, use the 'strict: true' option. Older patch versions add backtrack protection but do not protect against vulnerable user-supplied capture groups. It is advised to upgrade to version 8.0.0, which removes the vulnerable feature entirely.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant