Skip to content

Commit 29963a4

Browse files
enisdenjodependabot[bot]theguild-bot
authored
Bump glob in node's npm and use tar ^7 (#1709)
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: theguild-bot <[email protected]>
1 parent b67fe58 commit 29963a4

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

packages/gateway/node.Dockerfile

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,17 @@ ENV NODE_PATH=/gateway/node_modules
8484
# ensure that node uses the system CA certificates too because of https://nodejs.org/en/blog/release/v24.7.0
8585
ENV NODE_EXTRA_CA_CERTS=/etc/ssl/certs/ca-certificates.crt
8686

87-
RUN npm install tar@latest -g
88-
87+
# fix tar vulnerability by updating tar to latest v7 version
88+
RUN npm install tar@^7 -g
8989
RUN rm -rf /usr/local/lib/node_modules/npm/node_modules/tar
9090

91+
# fix glob vulnerability by updating glob to latest version ^11
92+
# deal with CVE-2025-64756
93+
RUN npm install glob@^11 -g
94+
# node-gyp uses glob v10, but v11 is safe because it requires node v20+ and we're running v25
95+
RUN rm -rf /usr/local/lib/node_modules/npm/node_modules/node-gyp/node_modules/glob
96+
# npm uses glob v11, so we've just bumped it to the latest
97+
RUN rm -rf /usr/local/lib/node_modules/npm/node_modules/glob
98+
9199
USER node
92100
ENTRYPOINT ["dumb-init", "node", "bin.mjs"]

0 commit comments

Comments
 (0)