Vulnerability
CVE-2025-59342
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’s storage base directory. As a result, supplying ../ sequences in X-Zone-Id causes files to be written to arbitrary directories. Version 136.1 contains a patch.
5 advisories report this vulnerability, across 3 ecosystems.
Advisories
-
GHSA-g2h5-cvvr-7gmw
esm.sh has arbitrary file write via path traversal in `X-Zone-Id` header
-
GO-2025-3967
esm.sh has arbitrary file write via path traversal in `X-Zone-Id` header in github.com/esm-dev/esm.sh
-
SUSE-SU-2025:3799-1
Security update for govulncheck-vulndb
-
openSUSE-SU-2025:15576-1
govulncheck-vulndb-0.0.20250924T192141-1.1 on GA media
-
openSUSE-SU-2026:21483-1
Security update for govulncheck-vulndb