Skip to content

Commit c8c8d7b

Browse files
Copilotpelikhan
andauthored
fix: bump npm to 11.19.0 and patch bundled tar/brace-expansion in gh-aw-node image
Resolves container image vulnerabilities found in ghcr.io/github/gh-aw-node: - Bump NPM_VERSION from 11.18.0 to 11.19.0 - Add explicit patch of npm bundled tar to >=7.5.22 and brace-expansion to >=5.0.8 - Alpine CVEs (CVE-2026-58055, CVE-2025-60876) addressed by apk upgrade on rebuild Closes #49295 Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
1 parent 98505d4 commit c8c8d7b

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.changeset/patch-refresh-gh-aw-node.md

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

actions/setup/js/Dockerfile.safe-outputs-mcp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,16 @@ ARG NODE_IMAGE
77
ARG NODE_IMAGE_DIGEST=""
88
ARG NODE_IMAGE_UPDATED_AT=""
99
ARG DOCKERFILE_HASH=""
10-
ARG NPM_VERSION=11.18.0
10+
ARG NPM_VERSION=11.19.0
1111

1212
# Intentional: upgrade all packages to pick up security fixes; downstream digest pins the result.
13+
# After upgrading npm, patch its bundled dependencies to meet minimum safe versions
14+
# (tar >= 7.5.21 for CVE-2025-tar, brace-expansion >= 5.0.8 for CVE-2025-brace-expansion).
1315
RUN apk upgrade --no-cache \
1416
&& apk add --no-cache git \
1517
&& apk info -v | sort \
1618
&& npm install --global "npm@${NPM_VERSION}" \
19+
&& npm install --prefix "$(npm root -g)/npm" --no-save "tar@^7.5.22" "brace-expansion@^5.0.8" \
1720
&& npm cache clean --force
1821

1922
LABEL org.opencontainers.image.source="https://github.com/github/gh-aw" \

0 commit comments

Comments
 (0)