Skip to content

Commit

Permalink
fix: address CVE-2024-21538
Browse files Browse the repository at this point in the history
  • Loading branch information
sebthom committed Nov 26, 2024
1 parent ee941c4 commit 958a4c4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ IMAGE_BUILD: $BUILD_DATE" >/opt/build_info
mkdir /opt/meshcentral
chown -R node:node /opt/meshcentral

# TODO temporary workaround for CVE-2024-21538, see https://github.com/npm/cli/issues/7902
rm -rf /usr/local/lib/node_modules/npm/node_modules/cross-spawn

EOF

USER node
Expand All @@ -149,10 +152,9 @@ RUN <<EOF
"version": "0.0.0"
}' > package.json

npm install meshcentral --only=production
npm install meshcentral --omit=dev
npm list
node ./node_modules/meshcentral --help

EOF

COPY image/run.sh /opt/run.sh
Expand Down

0 comments on commit 958a4c4

Please sign in to comment.