[agent] chore(deps): add override to bump tar-fs to >=2.1.4#706
Draft
github-actions[bot] wants to merge 1 commit intomainfrom
Draft
[agent] chore(deps): add override to bump tar-fs to >=2.1.4#706github-actions[bot] wants to merge 1 commit intomainfrom
github-actions[bot] wants to merge 1 commit intomainfrom
Conversation
Adds npm override to ensure tar-fs resolves to >=2.1.4, fixing three high-severity path traversal / symlink vulnerabilities: - GHSA-pq67-2wwv-3xjx (CVE-2024-12905) – patched in 2.1.2 - GHSA-8cj5-5rvv-wf4v (CVE-2025-48387) – patched in 2.1.3 - GHSA-vj76-c3g6-qr5v (CVE-2025-59343) – patched in 2.1.4 tar-fs is a transitive dependency pulled in by prebuild-install (via kerberos and mongodb-client-encryption). prebuild-install declares 'tar-fs ^2.0.0' but has not shipped a release that pins to >=2.1.4, so an npm overrides entry is the appropriate fix. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.
Adds an npm
overridesentry to the rootpackage.jsonto ensuretar-fsresolves to>=2.1.4, fixing three high-severity path traversal / symlink vulnerabilities.Vulnerabilities addressed
All three are path traversal / symlink-following issues in
tar-fsthat allow a maliciously crafted tarball to write files outside the intended extraction directory.Why overrides?
tar-fsis a transitive dependency pulled in byprebuild-install(which is used bykerberosandmongodb-client-encryption).prebuild-install@7.1.3(latest) still declarestar-fs ^2.0.0, so bumping the direct dependency is not possible — there is no direct dependency ontar-fsin any workspacepackage.json. An npmoverridesentry is therefore the correct mechanism to force resolution to a patched version.The lockfile now resolves
tar-fsto3.1.2(which satisfies>=2.1.4).npm auditreports no remainingtar-fsvulnerabilities.