Inefficient Regular Expression Complexity Affecting node-path-to-regexp package, versions <6.3.0-1


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.05% (19th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Inefficient Regular Expression Complexity vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-DEBIAN13-NODEPATHTOREGEXP-7935206
  • published12 Sept 2024
  • disclosed9 Sept 2024

Introduced: 9 Sep 2024

CVE-2024-45296  (opens in a new tab)
CWE-1333  (opens in a new tab)

How to fix?

Upgrade Debian:13 node-path-to-regexp to version 6.3.0-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream node-path-to-regexp package and not the node-path-to-regexp package as distributed by Debian. See How to fix? for Debian:13 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1