Skip to main content

CVE-2025-59342: CWE-24: Path Traversal: '../filedir' in esm-dev esm.sh

Medium
VulnerabilityCVE-2025-59342cvecve-2025-59342cwe-24
Published: Wed Sep 17 2025 (09/17/2025, 17:59:34 UTC)
Source: CVE Database V5
Vendor/Project: esm-dev
Product: esm.sh

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.

Technical Details

Data Version
5.1
Assigner Short Name
GitHub_M
Date Reserved
2025-09-12T12:36:24.636Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 68caf94c33b75e972181a55c

Added to database: 9/17/2025, 6:09:16 PM

Last updated: 9/17/2025, 6:09:16 PM

Views: 1

Actions

Please log in to the Console to use AI analysis features.

Need enhanced features?

Contact root@offseq.com for Pro access with improved analysis and higher rate limits.

Latest Threats