Skip to content
OpenAdvisories
High · 8.6 CVE-2026-27730 EUVD-2026-8685GHSA-p2v6-84h2-5x4rGO-2026-4554

esm.sh has SSRF localhost/private-network bypass in `/http(s)` module route

Published Feb 25, 2026 · Updated Feb 25, 2026 · Assigned by GitHub_M

Description

esm.sh is a no-build content delivery network (CDN) for web development. Versions up to and including 137 have an SSRF vulnerability (CWE-918) in esm.sh’s `/http(s)` fetch route. The service tries to block localhost/internal targets, but the validation is based on hostname string checks and can be bypassed using DNS alias domains. This allows an external requester to make the esm.sh server fetch internal localhost services. As of time of publication, no known patched versions exist.

Affected products

VendorProductAffectedFixed
esm-dev esm.sh <= 137 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260723T184607-160000.1.1 openSUSE-SU-2026:21483-1
openSUSE Leap 15.6 govulncheck-vulndb 0.0.20260317T205859-150000.1.152.1 SUSE-SU-2026:1042-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/esm-dev/esm.sh < 0.0.0-20250616164159-0593516c4cfa 0.0.0-20250616164159-0593516c4cfa GHSA-p2v6-84h2-5x4r

Advisories 2

References