VYPR
High severity7.5OSV Advisory· Published Sep 9, 2024· Updated Apr 15, 2026

CVE-2024-45296

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.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
path-to-regexpnpm
>= 0.2.0, < 1.9.01.9.0
path-to-regexpnpm
< 0.1.100.1.10
path-to-regexpnpm
>= 7.0.0, < 8.0.08.0.0
path-to-regexpnpm
>= 2.0.0, < 3.3.03.3.0
path-to-regexpnpm
>= 4.0.0, < 6.3.06.3.0

Affected products

133

Patches

Vulnerability mechanics

References

11

News mentions

0

No linked articles in our index yet.