CVE-2025-13437
CVE-2025-13437 — Arbitrary node_modules Directory Deletion in Google zx
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.
Published Updated Sources: cvelistV5, Google
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
<1%
chance of exploitation in 30 days
CVSS base
5.6
MEDIUM
CISA SSVC assessment
Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.
Exploitation
PoC
none · proof-of-concept · active
Automatable
No
can an attacker script all four kill-chain steps
Technical impact
Partial
partial · total control of the vulnerable component
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (1)
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 5.6 | CVSS 4.0 | MEDIUM | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-706
Attack patterns reported against this CVE. The ATT&CK techniques below are inferred from its weakness class.
- T1574.008Hijack Execution Flow: Path Interception by Search Order Hijacking
- T1036Masquerading
- T1574.002Hijack Execution Flow: DLL Side-Loading
Detection
Read off the CVSS vector and the weakness class. Starting points, not rules we have tested.
- Search application, proxy, and WAF logs for requests touching /node_modules, /cli.ts.
References
1 on the record
- github.com/google/zx/issues/1348
reference
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2025-24813 Apache Tomcat: Potential RCE and/or information disclosure and/or information corruption with partial PUTCVSS 9.8 · CISA KEV
- CVE-2021-40539 Zoho ManageEngine ADSelfService Plus Authentication Bypass VulnerabilityCVSS 9.8 · CISA KEV
- CVE-2020-15505 Ivanti MobileIron Multiple Products Remote Code Execution VulnerabilityCVSS 9.8 · CISA KEV
- CVE-2026-114663 Vyper 0.4.0b1 through 0.5.0b1 Name Shadowing of Imported Constants and Default ArgumentsCVSS 8.4
- CVE-2026-118496 Use of Incorrectly-Resolved Name or Reference in CODESYS Automation Server Connector and CODESYS Service ToolCVSS 7.5
- CVE-2026-136862 In Eclipse Apoapsis ORT Server Credential Helper versions 0.1.0 to 0.2.0, as shipped with Eclipse Apoapsis ORT Server versions 0.65.0 to…CVSS 7.0
Elsewhere on this site
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.