File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff 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
8585ENV 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
8989RUN 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+
9199USER node
92100ENTRYPOINT ["dumb-init" , "node" , "bin.mjs" ]
You can’t perform that action at this time.
0 commit comments