CVE-2026-102657

Source
https://cve.org/CVERecord?id=CVE-2026-102657
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-102657.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-102657
Aliases
Published
2026-11-06T20:49:28Z
Modified
2026-11-27T20:00:09Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
Summary
esm.sh: web.NewHandler allows arbitrary file read via encoded dot-segment path traversal
Details

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.

Database specific
{
    "cna_assigner":  "GitHub_M",
    "cwe_ids":  [
        "CWE-22"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/102xxx/CVE-2026-102657.json"
}
References

Affected packages

Git / github.com/esm-dev/esm.sh

Affected ranges

Type
GIT
Repo
https://github.com/esm-dev/esm.sh
Events
Database specific
Show details
{
    "extracted_events":  [
        {
            "range":  [
                {
                    "introduced":  "< 137_7"
                },
                {
                    "last_affected":  "< 137_7"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StandaloneSingleVersion"
        },
        {
            "range":  [
                {
                    "fixed":  "468b6b2a4b4dfec334cf6b33b01fcd4e5cd93bed"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        },
        {
            "range":  [
                {
                    "fixed":  "fc3b345e73aeaa0b7a05b6f27d91c05fdf5f9b53"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        },
        {
            "original_tag":  "v137_7",
            "range":  [
                {
                    "fixed":  "96e48ae9861c51ade17e49f43e42d77843ad95aa"
                }
            ],
            "source":  "REFERENCES_TAG"
        }
    ]
}

Affected versions

Other
< 137_7

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-102657.json"