UnratednpmAmendedPublished
Arbitrary File Write in cli
CVE-2016-10538 · GHSA-6cpc-mj5c-m9rq
- Affected
- npm cli < 1.0.0
- Fixed in
- 1.0.0· Vendor fix available
- Issue
- Affected versions of cli use predictable temporary file names. If an attacker can create a symbolic link at the location of one of these temporarly file names, the attacker can arbitrarily write to any file that the user which owns the cli process has permission to write to. Proof of Concept By creating Symbolic Links at the following locations, the target of the link can be written to. Recommendation Update to version 1.0.0 or later.
Recommended action: Upgrade to 1.0.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.