CVE-2025-59342
Raw 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:XCVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.
Summary
CVE-2025-59342 is a medium-severity Path Traversal: '../filedir' (CWE-24) vulnerability. Its CVSS base score is 5.5 (Medium).
Operationally, exploitation aligns with the MITRE ATT&CK technique External Defacement (T1491.002); ranked in the top 11% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog.
The strongest mitigations our analysis identified map to SI-10 (Information Input Validation) and AC-3 (Access Enforcement) — see the control section below for these in your framework.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2025-29764
Vulnerability Data
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…
more
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.
- CWE(s)
Related Threats
MITRE ATT&CK Enterprise Techniques
MITRE ATT&CK v20.0
CVEs Like This One
Affected Assets
Mitigating Controls
Mitigating Controls (NIST 800-53 r5)
Our mappings, made for this CVE.
Input validation directly neutralizes '../' sequences in externally-supplied pathnames before they are resolved.
Enforced access authorizations can limit the damage even when path traversal succeeds.
Mitigating Controls (NIST CSF 2.0)
Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.
Secure SDLC practices directly require input validation and path sanitization that prevent ../ traversal.
Mitigating Controls (ISO/IEC 27001:2022 Annex A)
Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.
Security testing in development catches path-traversal flaws before release.
Training developers in secure coding practices (input validation, path neutralization) reduces path traversal defects but is a fallible human practice; the A.6.3 vs CWE-598 anchor sets the rung for code-level defects developers introduce, and path traversal sits in the same band.
A.8.19 governs the installation and update process for operational software, ensuring integrity and preventing exploitation, but it does not remove existing path traversal flaws in application code; the weakness is a code defect that persists unless the code itself is fixed.
Secure coding standards require neutralizing ../ sequences and canonicalizing paths before file operations.
A.8.8's reach is DISCLOSURE — vulnerability scanning, patch management, and tracking third-party libraries all see only what carries a published advisory. Path traversal commonly surfaces as CVEs (it is a well-known class), so the disclosed share is non-trivial, but most path traversal in custom first-party code never gets a CVE and is outside A.8.8's view. The penetration-testing element in (e) is part of the programme but does not change the control's primary disclosure-based reach, and the guidance is clear that an actor naming one reach is not credited with others.