CVE-2025-13437

CVE-2025-13437 is a medium-severity vulnerability with a CVSS 4.0 base score of 5.6. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-706.

Key facts

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.

Frequently asked questions

What is CVE-2025-13437?
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.
How severe is CVE-2025-13437?
CVE-2025-13437 has a CVSS 4.0 base score of 5.6, rated medium severity.
Is CVE-2025-13437 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (1st percentile), an estimate of the probability of exploitation in the next 30 days.
How do I fix CVE-2025-13437?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
Does CVE-2025-13437 have an EU (EUVD) identifier?
Yes. CVE-2025-13437 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2025-198297.
When was CVE-2025-13437 published?
CVE-2025-13437 was published on 2025-11-20 and last updated on 2026-06-17.

References

Other CWE-706 vulnerabilities

Browse all CWE-706 vulnerabilities →