{"cve":"CVE-2025-59342","nvd":{"published":"2025-09-17T18:15:53.550","modified":"2026-06-17T09:45:56.447","status":"Deferred","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.","cvss_v4":{"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P","score":5.5},"cvss_v3":null,"cwes":["CWE-24"],"references":["https://github.com/esm-dev/esm.sh/blob/main/server/router.go#L116","https://github.com/esm-dev/esm.sh/blob/main/server/router.go#L411","https://github.com/esm-dev/esm.sh/commit/833a29f42aeb0acbd7089a71be11dd0a292d3151","https://github.com/esm-dev/esm.sh/security/advisories/GHSA-g2h5-cvvr-7gmw"],"products":[],"source":"nvd","synced_at":"2026-10-19T22:10:08.713834912+00:00"},"epss":{"cve":"CVE-2025-59342","score":0.03153,"percentile":0.8796,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-g2h5-cvvr-7gmw","url":"https://osv.dev/vulnerability/GHSA-g2h5-cvvr-7gmw","summary":"esm.sh has arbitrary file write via path traversal in `X-Zone-Id` header","modified":"2026-09-10T03:50:28.407413552Z","packages":[{"ecosystem":"Go","name":"github.com/esm-dev/esm.sh","purl":"pkg:golang/github.com/esm-dev/esm.sh","ranges":["<136.1"],"fixed":["136.1"]}]},{"id":"GO-2025-3967","url":"https://osv.dev/vulnerability/GO-2025-3967","summary":"esm.sh has arbitrary file write via path traversal in `X-Zone-Id` header in github.com/esm-dev/esm.sh","modified":"2026-03-03T04:56:55.361146Z","packages":[{"ecosystem":"Go","name":"github.com/esm-dev/esm.sh","purl":"pkg:golang/github.com/esm-dev/esm.sh","ranges":["all versions"],"fixed":[]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}