CVE-2025-59342
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.
Does this matter?
A public exploit is published in Exploit-DB, so the technical barrier is gone even though the severity is medium and EPSS is 3.3%. Treat it as high on anything reachable from the internet.
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 4.0
- 5.5 MEDIUMCVSS: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/M
- EPSS
- 3.28% probability · 89th percentile
- Public exploits
- 1 in Exploit-DB · first 16 December 2025
- CISA KEV
- Not listed
- Weakness
- CWE-24
- Source
- security-advisories@github.com
In plain terms
It can be reached over a network with no login and no help from a user. On a system exposed to the internet, a patch or a network control is all that stands in the way.
- Reached from
- Over a network. If the affected system can be reached from the internet, so can the flaw.
- Effort
- Nothing special has to be got round first.
- Login needed
- None. No login is needed.
- Someone else involved
- No. Nobody has to click, open or approve anything.
- At risk on the affected system
- Reading data: none. Changing data: limited. Stopping the service: none.
Read from the CVSS 4.0 vector above. It describes the flaw itself, not how your own systems are set up.
The first public exploit in Exploit-DB is dated 16 December 2025, about 3 months after the record was published.
EPSS 3.3% since 4 December 2026; no change recorded yet. Points are recorded when the score first appears and whenever it moves by a percentage point or more.
Public exploits (1)
Entries in Exploit-DB that cite this CVE. Links go to the Exploit-DB page and to the file in the public repository; nothing is hosted here. A verified tick means the Exploit-DB team confirmed the exploit works against the stated version.
Where to go from here
One vulnerability is rarely the whole question. These are free, and none of them asks for an account.
By email
Our briefing by email: what changed, what to patch and what it means for a UK organisation. Written for the people who have to act on it.
References
Source: NVD record, EPSS from FIRST.org, KEV from CISA, exploits from Exploit-DB. Refreshed daily. Download this record as JSON.