CVE-2025-13437

MEDIUM CVSS 4.0: 5.6 EPSS 0.09%
Updated Oct 18, 2026
Google
Parameter Value
CVSS 5.6 (MEDIUM)
Type CWE-706
Vendor Google
Public PoC No

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.

Attack Parameters

Attack Vector
Local
Requires local access
Attack Complexity
Low
Easy to exploit
Attack Requirements
None
No additional conditions
Privileges Required
None
No privileges needed
User Interaction
Active
User action required

Impact Assessment

Confidentiality
None
No data leak
Integrity
High
Complete data modification
Availability
High
Complete denial of service

CVSS Vector v4.0

Weakness Type (CWE)

Vulnerable Products

google:zx