{"id":74009,"date":"2025-11-20T19:55:16","date_gmt":"2025-11-20T16:25:16","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2025-13437-arbitrary-node_modules-directory-deletion-in-google-zx\/"},"modified":"2025-11-20T19:55:16","modified_gmt":"2025-11-20T16:25:16","slug":"cve-2025-13437-arbitrary-node_modules-directory-deletion-in-google-zx","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2025-13437-arbitrary-node_modules-directory-deletion-in-google-zx\/","title":{"rendered":"CVE-2025-13437 &#8211; Arbitrary node_modules Directory Deletion in Google zx"},"content":{"rendered":"<p>CVE ID : CVE-2025-13437<\/p>\n<p>Published :  Nov. 20, 2025, 4:25 p.m. | 48\u00a0minutes ago<\/p>\n<p>Description : When zx is invoked with &#8211;prefer-local=, the CLI creates a symlink named .\/node_modules pointing to \/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 \/node_modules outside the current working directory.<\/p>\n<p>Severity: 5.6 | MEDIUM<\/p>\n<p>Visit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID : CVE-2025-13437 Published : Nov. 20, 2025, 4:25 p.m. | 48\u00a0minutes ago Description : When zx is invoked with &#8211;prefer-local=, the CLI creates a symlink named .\/node_modules pointing to \/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 &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-74009","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/74009","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=74009"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/74009\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=74009"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=74009"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=74009"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}