You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That is likely a dependency of NPM, and we do not update the image with a version of NPM except for the one shipped by Node.js. You can see if it is addressed upstream and if it will be in an upcoming Node.js release
For scanned images where npm is needed, I can update to a version of npm where this is fixed in my Dockerfile at references a published docker-node image:
FROM node:18-alpine
RUN npm install -g npm@10.9.1
For scanned images where npm is not needed (i.e. not part of a build process), I would just remove npm (and yarn):
Activity
nschonni commentedon Nov 19, 2024
That is likely a dependency of NPM, and we do not update the image with a version of NPM except for the one shipped by Node.js. You can see if it is addressed upstream and if it will be in an upcoming Node.js release
https://github.com/nodejs/docker-node/blob/main/SECURITY.md
ACoolmanTelicent commentedon Nov 19, 2024
For other travellers npm/cli#7902
jeffrey-zhang commentedon Dec 5, 2024
NPM has released the new version to fix this. so, do we have any plan to rebuild and release our base image to include this fix.
feenst commentedon Dec 12, 2024
For scanned images where npm is needed, I can update to a version of npm where this is fixed in my Dockerfile at references a published docker-node image:
For scanned images where npm is not needed (i.e. not part of a build process), I would just remove npm (and yarn):