-
Notifications
You must be signed in to change notification settings - Fork 63
Closed
Labels
Description
Is there an existing issue for this?
- I have searched the existing issues
Current behavior
Using "@nestjs/serve-static": "^4.0.2" seams to reference a vulnerable version of "path-to-regexp" .
# npm audit report
path-to-regexp 0.2.0 - 1.8.0
Severity: high
path-to-regexp outputs backtracking regular expressions - https://github.com/advisories/GHSA-9wv6-86v2-598j
fix available via `npm audit fix --force`
Will install @nestjs/serve-static@2.2.2, which is a breaking change
node_modules/@nestjs/serve-static/node_modules/path-to-regexp
@nestjs/serve-static 2.0.0-next.1 - 2.0.0 || >=3.0.0
Depends on vulnerable versions of path-to-regexp
node_modules/@nestjs/serve-static
Minimum reproduction code
Steps to reproduce
npm install
npm audit
Expected behavior
no high security vulnerable
Package version
4.0.2
NestJS version
10.4.3
Node.js version
22.8.0
In which operating systems have you tested?
- macOS
- Windows
- Linux
Other
No response
micalevisk, DaSchTour, talski, kekiel, lanzkron and 7 moreBeataKr and didaquis