deps: update tar to 7.5.2 to fix CVE-2025-64118 #1493
+9
−49
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.
Description
This PR updates the
tarpackage from version 7.5.1 to 7.5.2 to address security vulnerability CVE-2025-64118, which was flagged by Dependabot alert #371.The vulnerability involves a race condition in
tar.list()withsync: truethat could lead to uninitialized memory exposure if a tar file is truncated while being read. While the conditions for exploitation are specific (requires sync mode, attacker-controlled file truncation, and processing of entry contents), updating to the patched version eliminates the risk entirely.The fix was implemented using pnpm's
overridesfeature to force all transitive dependencies to use tar@7.5.2, ensuring minimal changes to the dependency tree. As a bonus, this also cleaned up an old unused tar@6.2.1 dependency and its related packages.Test plan
pnpm build:libs)pnpm test:vitest- 48 tests across 15 suites)pnpm lint)Package updates
This is a security patch for a transitive dependency. No changeset is required as this doesn't affect the public API of any published packages.
Link to Devin run: https://app.devin.ai/sessions/ed69d15ffcf0484dac24e49393cfc641
Requested by: Penelope (@soinclined)
Review checklist: