fix(deps): resolve CVE-2025-54798 arbitrary file write in tmp#1002
Merged
fix(deps): resolve CVE-2025-54798 arbitrary file write in tmp#1002
Conversation
…rary file write) Dependency trace: - lerna@5.6.2 → @nrwl/devkit@15.9.7 → tmp@~0.2.1 (resolved to 0.2.1) - lerna@5.6.2 → nx@15.9.7 → tmp@~0.2.1 (resolved to 0.2.1) Direct parent analysis: - lerna@5.6.2 is the latest and final release in the 5.x line. - @nrwl/devkit and nx 15.9.7 both specify tmp@~0.2.1, which DOES accept tmp@0.2.4+ (the fixed version), but the lockfile had resolved to 0.2.1 (the latest at the time the lockfile was created). - No bump of lerna within its major resolves this since 5.6.2 is already latest. Resolution 'tmp': '^0.2.4' forces all instances to 0.2.5 (latest 0.2.x), fixing the CVE. The ~0.2.1 range in both @nrwl/devkit and nx accepts this.
ShadowCat567
approved these changes
Mar 6, 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.
Summary
Resolves CVE-2025-54798 (arbitrary file write) in tmp 0.2.1 → 0.2.5.
Changes
"tmp": "^0.2.4"— resolves to 0.2.5Strategy
Traced via
yarn why:lerna@5.6.2→@nrwl/devkit@15.9.7→tmp;lerna@5.6.2→nx@15.9.7→tmp. Both specify~0.2.1. lerna@5.6.2 is the final 5.x release — resolution required to force upgrade.Verification
lerna run build✅lerna run test✅yarn extract-dependency-licenses✅ (1 ins/1 del)