CVE-2025-59342
published medium CVSS 4.0 · 5.5esm.sh writes arbitrary files via path traversal in `X-Zone-Id` header
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| esm-dev | — | esm.sh<= 136 | Affected | Not stated | GitHub_M |
| SUSE / openSUSE | openSUSE-Tumbleweed | govulncheck-vulndbaarch64 | Advisory build | 0.0.20250924T192141-1.1 | OPENSUSE-SU-2025:15576-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | govulncheck-vulndbppc64le | Advisory build | 0.0.20250924T192141-1.1 | OPENSUSE-SU-2025:15576-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | govulncheck-vulndbs390x | Advisory build | 0.0.20250924T192141-1.1 | OPENSUSE-SU-2025:15576-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | govulncheck-vulndbx86_64 | Advisory build | 0.0.20250924T192141-1.1 | OPENSUSE-SU-2025:15576-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.5 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| esm-dev | esm.sh | <= 136 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-24 CWE-24: Path Traversal: '../filedir'
References
4Provider assertions
2GitHub_M · cna
esm.sh writes arbitrary files via path traversal in `X-Zone-Id` header
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 964d0e268f9a470093ee40d51a9f56474c353d2f68492e391428559459e51f37
- Ingested
- 23 Sep 2026, 08:54:20 UTC
- Source record
- Official CVE record