Vulnerability in Esm-Dev Esm.sh

CVE-2025-59342

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.

Published · last modified .

EPSS exploit prediction

EPSS 0.032, 88.2th percentile (scored ); unchanged over 30 days. About EPSS.

Affected products

Weakness classification (CWE)

Public exploits and proof-of-concept code

1 public repository with exploit or proof-of-concept code for this CVE:

Also mentioned in 3 other repositories (fkie-cad/nvd-json-data-feeds, nomi-sec/PoC-in-GitHub, PuddinCat/GithubRepoSpider). These reference the CVE in a list, notes or a scanner and are not exploit code for it.

References