Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2025-13437— Arbitrary node_modules Directory Deletion in Google zx

Quick assessment

Affected
Google zx
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

zx是Google开源的一个编写脚本的工具。 zx存在安全漏洞,该漏洞源于逻辑错误,可能导致删除外部node_modules目录。

AI Predicted 7.8 Difficulty: Easy EPSS 0.09% · P0
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2025-13437

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Arbitrary node_modules Directory Deletion in Google zx
Source: CVE Program / CVE List V5
Vulnerability 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: CVE Program / CVE List V5
CVSS Information
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:H/SC:N/SI:H/SA:H/E:U
Source: CVE Program / CVE List V5
Vulnerability Type
使用不正确的解析名称或索引
Source: CVE Program / CVE List V5
Vulnerability Title
zx 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
zx是Google开源的一个编写脚本的工具。 zx存在安全漏洞,该漏洞源于逻辑错误,可能导致删除外部node_modules目录。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
Google zx 8.8.4 -

II. Public POCs for CVE-2025-13437

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2025-13437

登录查看更多情报信息。

Other References for CVE-2025-13437 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2025-13437

No comments yet


Leave a comment