File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,11 +24,13 @@ RUN mkdir -p /tmp/brace-expansion-update && \
2424 cp -r node_modules/@isaacs/brace-expansion /usr/local/lib/node_modules/npm/node_modules/@isaacs/ && \
2525 rm -rf /tmp/brace-expansion-update
2626
27- # Fix minimatch vulnerability: Update npm's bundled minimatch from 10.1.2 to 10.2.1 (and deps: brace-expansion, balanced-match)
27+ # Fix minimatch vulnerability and CVE-2026-25547: keep npm's unscoped brace-expansion outside vulnerable 5.0.0-5.0.6 range
2828RUN mkdir -p /tmp/minimatch-update && \
2929 cd /tmp/minimatch-update && \
3030 npm init -y && \
3131 npm install minimatch@10.2.3 --legacy-peer-deps && \
32+ npm install brace-expansion@4.0.1 balanced-match@3.0.1 --legacy-peer-deps --force && \
33+ rm -rf node_modules/minimatch/node_modules/brace-expansion && \
3234 rm -rf /usr/local/lib/node_modules/npm/node_modules/minimatch && \
3335 cp -r node_modules/minimatch /usr/local/lib/node_modules/npm/node_modules/ && \
3436 rm -rf /usr/local/lib/node_modules/npm/node_modules/brace-expansion && \
You can’t perform that action at this time.
0 commit comments