CVE-2024-45296
Description
path-to-regexp turns path strings into a regular expressions. In certain cases, path-to-regexp will output a regular expression that can be exploited to cause poor performance. Because JavaScript is single threaded and regex matching runs on the main thread, poor performance will block the event loop and lead to a DoS. The bad regular expression is generated any time you have two parameters within a single segment, separated by something that is not a period (.). For users of 0.1, upgrade to 0.1.10. All other users should upgrade to 8.0.0.
How to fix
- path-to-regexp0.1.13, 1.9.0, 0.1.10, 8.0.0, 3.3.0, 6.3.0 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| path-to-regexpnpm | v < 0.1.13, 0.2.0 ≤ v < 1.9.0, v < 0.1.10, 7.0.0 ≤ v < 8.0.0, 2.0.0 ≤ v < 3.3.0, 4.0.0 ≤ v < 6.3.0 | 0.1.13, 1.9.0, 0.1.10, 8.0.0, 3.3.0, 6.3.0 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.