Upgrade npm to patch bundled tar vulnerability - #74
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR upgrades the runtime image’s npm to a patched release (bringing in a non-vulnerable bundled tar) and extends both image validation and the automated Docker dependency updater to track the npm pin moving forward.
Changes:
- Pin and install
npm@12.0.1during the Docker image build. - Add an environment test asserting npm’s bundled
taris at least7.5.19. - Run the Docker dependency updater daily and include
NPM_VERSIONin its probe/report/pinning logic.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
src/tests/10_validate_environment.sh |
Adds a runtime check that npm’s bundled tar meets the minimum patched version. |
Dockerfile |
Introduces ARG NPM_VERSION and installs that npm version during build. |
ci/prompts/docker-dependency-nonapt.md |
Documents a rule for selecting npm versions based on Node engine compatibility. |
.github/workflows/docker-dependency-updater.yml |
Runs daily and extends probing/pinning/reporting to include NPM_VERSION. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
fqjony
enabled auto-merge
July 22, 2026 12:29
kavaribes
approved these changes
Jul 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
tar7.5.19.tarolder than 7.5.19.Why
The Node 24.18.0 distribution bundles npm with
tar7.5.15, which is affected by CVE-2026-59873. Updating npm removes that vulnerable package from the runtime image.Validation
tar7.5.19.