CVE-2025-59342

MEDIUM NUCLEI

esm.sh <136 - Path Traversal

Title source: llm

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.

Exploits (2)

exploitdb WORKING POC
by Byte Reaper · cwebappsmultiple
https://www.exploit-db.com/exploits/52461
nomisec WORKING POC 1 stars
by byteReaper77 · poc
https://github.com/byteReaper77/CVE-2025-59342

Nuclei Templates (1)

esm.sh <= v136 - Arbitrary File Write via Path Traversal
MEDIUMVERIFIEDby 0x_Akoko
Shodan: http.html:"esm.sh"

Scores

CVSS v4 5.5
EPSS 0.0645
EPSS Percentile 91.1%
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

Details

CWE
CWE-24
Status published
Products (2)
esm-dev/esm.sh 0 - 136.1Go
esm-dev/esm.sh <= 136
Published Sep 17, 2025
Tracked Since Feb 18, 2026