Skip to content

Commit 82e08ae

Browse files
authored
Fix CVE: CVE-2026-45149 (#153)
1 parent 472a7c3 commit 82e08ae

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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
2828
RUN 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 && \

0 commit comments

Comments
 (0)