-
Notifications
You must be signed in to change notification settings - Fork 251
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
NPM IP package vulnerable to Server-Side Request Forgery (SSRF) attacks #288
Comments
Run |
Hello @TooTallNate, the vulnerable ip package is being pulled by the default npm installation. I tried building a docker image with node 20 and ip package is present in the image. Let me know if I'm doing anything wrong. ![]() Here's my Dockerfile, FROM node:20
COPY ./app.js ./
CMD ["node", "./app.js"] |
You're not doing anything wrong. The Docker image contains what was released in the version of Node.js / npm which that image contains, which was published before the fix here was. You'll need to wait for a new version of the Docker image to be published. |
Makes sense, thanks. |
I upgraded to the latest npm, ran
Wouldn`t it be better to just bump your dependency to socks "^2.7.3"? |
Use npm audit to fix that |
That dosn`t work as well. You can try it for yourself, make a new node project and install the latest npm as a dependency. |
npm audit
npm audit fix Dosn't work ? I don't know how to resolve then |
That issue is specific to the |
Ahh, thanks for clarifying! I'll look in the Npm Issue Tracker then. |
Is there a reason you're concerned specifically with the deps that npm installs? It shouldn't be a dependency directly of your project except for rare circumstances. |
Were using the https://github.com/semantic-release/npm plugin to create a private npm package in our CI/CD pipeline. This depends on npm and has over a million weekly downloads. So i would say its not that rare ;). |
FWIW, we're concerned with the deps that |
Same situation here, any news on this topic? |
U try npm audit ? |
I've already said that a new npm release needs to be made. I'm going to lock this thread. |
socks-proxy-agent
This package uses socks version 2.7.1, which has a dependency vulnerability.
Use the new socks patch as https://www.npmjs.com/package/socks/v/2.7.3
resources :
The text was updated successfully, but these errors were encountered: