Security mailing lists by PureSourceCode

CVE-2026-102657

HIGH 7.5CVSS 3.1

esm.sh: web.NewHandler allows arbitrary file read via encoded dot-segment path traversal

esm.sh is a no-build content delivery network (CDN) for web development. Prior to server version 137_7, the documented web.NewHandler static file server in web/handler.go joins the URL-decoded r.URL.Path with Config.AppDir without verifying that the result remains inside the configured application directory. URL-encoded dot segments such as %2e%2e bypass the plain traversal redirect performed by Go's ServeMux, allowing an unauthenticated remote attacker to make the server open and return files outside Config.AppDir that are readable by the server process. The confirmed impact is file disclosure only, and the issue is reachable with Dev disabled. This issue is fixed in server version 137_7.

Published
6 Nov 2026
Last modified
23 Nov 2026
Assigned by
security-advisories@github.com
NVD status
Deferred
Weakness
CWE-22
Also known as
GHSA-g3c2-rjq2-c763GO-2026-6954
Sources
NVDJSONOSV GHSA-g3c2-rjq2-c763JSONOSV GO-2026-6954JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
OSV GitHub CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV Go github.com/esm-dev/esm.sh/web < 0.2.0 0.2.0
OSV Go github.com/esm-dev/esm.sh < 0.2.0 0.2.0

References

History

  • 25 Nov 2026 21:23 UTC · NVD: first stored (published 6 Nov 2026)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 23 Nov 2026)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 9 Nov 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.