01 Record
CVE-2025-59342
esm.sh writes arbitrary files via path traversal in `X-Zone-Id` header
MediumPUBLISHEDCNA: GitHub_M
CNA base score5.5 CVSS v4.0CVSS: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
02 Description
esm.sh writes arbitrary files via path traversal in `X-Zone-Id` header
03 Exploitation and scoring
- Exploitation
- Public exploit code exists. CISA's assessment records a public proof of concept. That is not a report of exploitation in the wild.
- SSVC decision
- ExploitationpocPublic proof-of-concept exploit code exists. Not a report of exploitation in the wild.
- AutomatableyesAn attacker can reliably automate reconnaissance through exploitation, so this scales.
- Technical ImpactpartialSuccessful exploitation gives limited control of the vulnerable component.
- EPSS probability
- 3.15% probability of exploitation activity in the next 30 days.
- EPSS percentile
- Equal to or higher than the score of 87.8% of scored records. A rank, not a probability.
- NVD base score
- 5.5 (CVSS v4.0), scored by the NVD independently of the CNA.
- NVD CVSS 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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- NVD analysis status
- Deferred. NVD last modified this record on 2026-06-17.
- Red Hat severity
- No Red Hat rating. Red Hat rates the CVEs that affect its products.
Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.
04 Metadata
- Published
- 2025-09-17 17:59Z1 YR AGO
- Last updated
- 2026-01-14 15:52Z9 MO AGO
- Reserved
- 2025-09-12
- Assigning CNA
- GitHub_M
- Record state
- PUBLISHED
- Severity
- Medium (CVSS 5.5)
- CNA CVSS 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
- Weaknesses
- CWE-24Path Traversal: '../filedir'Variant
- Data version
- 5.2
- Document digest
- abbe0b1366165f942781c58b186742692e4ef0ee4166f31bbb539788fc8ae955
05 Affected products
VendorProductVersionsPlatforms
06 References
- github.comhttps://github.com/esm-dev/esm.sh/security/advisories/GHSA-g2h5-cvvr-7gmw
- github.comhttps://github.com/esm-dev/esm.sh/commit/833a29f42aeb0acbd7089a71be11dd0a292d3151
- github.comhttps://github.com/esm-dev/esm.sh/blob/main/server/router.go#L116
- github.comhttps://github.com/esm-dev/esm.sh/blob/main/server/router.go#L411