npm package reportIs zx safe ? 2 known vulnerabilities, worst severity MODERATE.
// reach 0 direct dependencies
none carry a known advisory
13 packages depend on it
an advisory here reaches each of them
// ai model usage Tracked for PyPI packages. HuggingFace models declare Python dependencies, so npm packages are not covered.
cvss CVSS v4.0 base score out of 10
epss chance of exploitation in 30 days, 0th percentile of all CVEs
xyz score CyberXYZ composite out of 10
fig. 01 — GHSA-w87r-vg9q-crqm, the advisory selected below
// 2 advisories GHSA-w87r-vg9q-crqm 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> MODE GHSA-qwp8-x4ff-5h87 This vulnerability is an Environment Variable Injection issue in dotenv.stringify, affecting google/zx version 8.3.1. MODE 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.
// cvss v4.0 vector 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
Attack vector Local
Attack complexity Low
Attack requirements None
Privileges required None
User interaction Active
Confidentiality (vulnerable system) None
Integrity (vulnerable system) High
Availability (vulnerable system) High
Confidentiality (subsequent systems) None
Integrity (subsequent systems) High
Availability (subsequent systems) High
Exploit maturity Unreported Checked 2026-11-06 at 21:39 UTC. The most recent advisory here was published 2025-11-20. Updated continuously from NVD, GHSA, OSV and CNA feeds.
Think a verdict here is wrong? Tell us — we respond within 2 business days. Report an issue with this page