{"id":70391,"date":"2025-09-17T22:31:36","date_gmt":"2025-09-17T19:01:36","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2025-59342-esm-sh-writes-arbitrary-files-via-path-traversal-in-x-zone-id-header\/"},"modified":"2025-09-17T22:31:36","modified_gmt":"2025-09-17T19:01:36","slug":"cve-2025-59342-esm-sh-writes-arbitrary-files-via-path-traversal-in-x-zone-id-header","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2025-59342-esm-sh-writes-arbitrary-files-via-path-traversal-in-x-zone-id-header\/","title":{"rendered":"CVE-2025-59342 &#8211; esm.sh writes arbitrary files via path traversal in `X-Zone-Id` header"},"content":{"rendered":"<p><strong>CVE ID : <\/strong>CVE-2025-59342<br \/>\n<br \/>\n<strong>Published : <\/strong> Sept. 17, 2025, 6:15 p.m. | 44\u00a0minutes ago<br \/>\n<br \/>\n<strong>Description : <\/strong>esm.sh is a nobuild content delivery network(CDN) for modern web development. In 136 and earlier, a path-traversal flaw in the handling of the X-Zone-Id HTTP header allows an attacker to cause the application to write files outside the intended storage location. The header value is used to build a filesystem path but is not properly canonicalized or restricted to the application\u2019s storage base directory. As a result, supplying ..\/ sequences in X-Zone-Id causes files to be written to arbitrary directories.<br \/>\n<br \/>\n<strong>Severity:<\/strong> 5.5 | MEDIUM<br \/>\n<br \/>\nVisit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID : CVE-2025-59342 Published : Sept. 17, 2025, 6:15 p.m. | 44\u00a0minutes ago Description : esm.sh is a nobuild content delivery network(CDN) for modern web development. In 136 and earlier, a path-traversal flaw in the handling of the X-Zone-Id HTTP header allows an attacker to cause the application to write files outside the intended &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-70391","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/70391","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=70391"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/70391\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=70391"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=70391"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=70391"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}