Skip to content
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 security issues - npm audit fix #179

Open
blink38 opened this issue Nov 14, 2024 · 0 comments
Open

npm security issues - npm audit fix #179

blink38 opened this issue Nov 14, 2024 · 0 comments

Comments

@blink38
Copy link

blink38 commented Nov 14, 2024

I'm working on a docker integration of ezpaarse for my OpenShift platform. In my CI wokflow, docker image is scanned by Trivy.

Using commit 3c131ca, 3 criticals and 17 high vulnerabilities are found.

image

I updated my Dockerfile to include this following line between make build-nuxt and npm cache clear :

RUN make node-modules build-nuxt 
RUN npm audit fix; npm install [email protected] [email protected]
RUN npm cache clear --force

Then Trivy found only 8 high vulnerabilities.

image

I'm using registry.redhat.io/ubi9/nodejs-18 base image.

The command npm audit fix --force is not working because of xslx package.

So, maybe it can be a good choice to add npm audit fix command in Dockerfile to fix some vulnerabilities that can be resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant