Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2025-13437
Published:November 20, 2025
Updated:April 09, 2026
When zx is invoked with --prefer-local=<path>, the CLI creates a symlink named ./node_modules pointing to <path>/node_modules. Due to a logic error in src/cli.ts (linkNodeModules / cleanup), the function returns the target path instead of the alias (symlink path). The later cleanup routine removes what it received, which deletes the target directory itself. Result: zx can delete an external <path>/node_modules outside the current working directory.
Affected Packages
https://github.com/google/zx.git (GITHUB):
Affected version(s) >=1.7.0 <8.8.5
Fix Suggestion:
Update to version 8.8.5
zx (NPM):
Affected version(s) >=0.0.0 <8.8.5
Fix Suggestion:
Update to version 8.8.5
Do you need more information?
Contact Us
CVSS v4
Base Score:
5.6
Attack Vector
LOCAL
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
ACTIVE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
HIGH
Subsequent System Availability
HIGH
Exploit Maturity
UNREPORTED
CVSS v3
Base Score:
8.2
Attack Vector
LOCAL
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
NONE
Integrity
HIGH
Availability
HIGH
Weakness Type (CWE)
Use of Incorrectly-Resolved Name or Reference
EPSS
Base Score:
0.01