Path Traversal Vulnerability in esm.sh CDN by esm-dev
CVE-2025-59342
5.5MEDIUM
What is CVE-2025-59342?
The esm.sh CDN, utilized for modern web development, contains a path traversal vulnerability that affects version 136 and earlier. An improper handling of the X-Zone-Id HTTP header allows attackers to exploit this flaw, potentially leading the application to write files outside its intended storage area. Because the value of this header is used to construct a filesystem path without sufficient restrictions or proper canonicalization, malicious actors can inject ../ sequences into the X-Zone-Id header. This can result in unauthorized file writing to arbitrary directories within the system.
Affected Version(s)
esm.sh <= 136