-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
path-to-regexp npm audit high vulnerable #13955
Comments
|
I tried reproducing this by:
it looks like affected packages are:
got this output:
|
|
When can we expect a fix for this .? Thanks :) |
Kamil should address this soon if feasible. And, as long as you don't have a route that uses the specific path pattern that is mentioned in the vulnerability, you don't need to worry. (btw npm audit: Broken by Design) |
The problem is audit pipelines failing :D downgrading to 6.10.14 is not an option for us. Hopefully the fix arrives soon :). Thanks |
@micalevisk I agree :) An issue has been opened for |
looks like that the |
They shouldn't need to backport, the release 3.2.0 is almost 5 years old! Nest should've upgraded a long time ago. |
@micalevisk That unfortunately doesn't work if you're using code that calls
The problem stems from this code:
|
It is now accessible via the exported member However, there's a breaking change in version 8 of
This will subsequently break the behaviour of e.g. exluding routes in middlewares thus making this breaking change transparent to users of nest as well. |
thanks so for those that really don't use you can use https://www.npmjs.com/package/patch-package to apply that |
pillarjs/path-to-regexp#317 (comment) |
Is there an existing issue for this?
Current behavior
In express, @nestjs/core, @nestjs/platform-express there is a package used "path-to-regexp" what causes a npm high security vulnerable. For Version 0.1.7 there is a path 0.1.10 but for 3.2.0 there is no patch currently available.
This should be updated.
Minimum reproduction code
pillarjs/path-to-regexp@29b96b4
Steps to reproduce
npm install
npm audit
Expected behavior
no high security vulnerable
Package
@nestjs/common
@nestjs/core
@nestjs/microservices
@nestjs/platform-express
@nestjs/platform-fastify
@nestjs/platform-socket.io
@nestjs/platform-ws
@nestjs/testing
@nestjs/websockets
Other package
No response
NestJS version
10.3.10
Packages versions
latest
Node.js version
20
In which operating systems have you tested?
Other
No response
The text was updated successfully, but these errors were encountered: