esm.sh CDN service suffers from a Path Traversal vulnerability (CWE-22) during NPM package tarball extraction. An attacker can craft a malicious package with file paths containing '../' sequences, which allows writing files outside the intended extraction directory on the server. This is possible because esm.sh uses path.Join without validating the normalized path, enabling escape from the package directory. The vulnerability can be triggered by setting the 'X-Npmrc' header to an attacker-controlled registry, bypassing restrictions on official registries. A proof-of-concept demonstrates creating a tarball that writes a file to /tmp on the server. A fix is available in version 0.0.0-20251117232647-9d77b88c3207.