CVE-2025-13437 in Target products
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, ...
Affects 0 products from 1 vendor. Facts below cite their sources.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Target | — | — |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2025-13437 |
|---|---|
| BreachSpider ID | BS-2025-GLOBAL-033693-I |
| Published | 2025-11-20 |
| Last modified | 2026-10-18 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-706: CWE-706
Related attack patterns (CAPEC)
CAPEC-177 Create files with the same name as files protected with a higher classification via CWE-706
CAPEC-641 DLL Side-Loading via CWE-706
CAPEC-48 Passing Local Filenames to Functions That Expect a URL via CWE-706
CAPEC-159 Redirect Access to Libraries via CWE-706
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
A logic error in the zx CLI tool can lead to the deletion of an external directory when using the --prefer-local=<path> option. This occurs due to incorrect handling of symlink creation and cleanup routines.
An attacker can exploit this vulnerability by invoking zx with a malicious --prefer-local=<path> argument, causing the unintended deletion of the specified directory.
Questions
What is CVE-2025-13437?
A logic error in the zx CLI tool can lead to the deletion of an external directory when using the --prefer-local=<path> option. This occurs due to incorrect handling of symlink creation and cleanup routines.
Is CVE-2025-13437 actively exploited?
No confirmed active exploitation of CVE-2025-13437 as of 2026-10-24.
How do I remediate CVE-2025-13437?
Priority: HIGH.
What systems are affected by CVE-2025-13437?
CVE-2025-13437 affects Target.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Target","product":"EDS-518A","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-10-18.