Medium severityOSV Advisory· Published Sep 17, 2025· Updated Apr 15, 2026
CVE-2025-59342
CVE-2025-59342
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 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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
github.com/esm-dev/esm.shGo | < 136.1 | 136.1 |
Affected products
5- ghsa-coords4 versionspkg:golang/github.com/esm-dev/esm.shpkg:rpm/opensuse/govulncheck-vulndb&distro=openSUSE%20Leap%2015.6pkg:rpm/opensuse/govulncheck-vulndb&distro=openSUSE%20Tumbleweedpkg:rpm/suse/govulncheck-vulndb&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP6
< 136.1+ 3 more
- (no CPE)range: < 136.1
- (no CPE)range: < 0.0.20251023T162509-150000.1.110.1
- (no CPE)range: < 0.0.20250924T192141-1.1
- (no CPE)range: < 0.0.20251023T162509-150000.1.110.1
Patches
Vulnerability mechanics
References
7- github.com/advisories/GHSA-g2h5-cvvr-7gmwghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2025-59342ghsaADVISORY
- github.com/esm-dev/esm.sh/blob/main/server/router.gonvdWEB
- github.com/esm-dev/esm.sh/blob/main/server/router.gonvdWEB
- github.com/esm-dev/esm.sh/commit/833a29f42aeb0acbd7089a71be11dd0a292d3151nvdWEB
- github.com/esm-dev/esm.sh/security/advisories/GHSA-g2h5-cvvr-7gmwnvdWEB
- pkg.go.dev/vuln/GO-2025-3967ghsaWEB
News mentions
0No linked articles in our index yet.