{"id":"CVE-2026-27730","published":"2026-02-25T15:37:01Z","modified":"2026-02-25T20:32:05Z","title":"esm.sh has SSRF localhost/private-network bypass in `/http(s)` module route","vendor":"esm-dev","product":"esm.sh","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.6,"severity":"HIGH","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00395,"percentile":0.34484,"provenance":"source"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"}],"references":[{"url":"https://github.com/esm-dev/esm.sh/security/advisories/GHSA-p2v6-84h2-5x4r","tags":["x_refsource_CONFIRM"]}],"priority":{"score":12.9,"factors":[{"name":"EPSS percentile","points":6.9},{"name":"CVSS severity","points":6.02}]},"vendorSlug":"esm-dev","affectedVersions":[{"vendor":"esm-dev","product":"esm.sh","versions":["<= 137"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-02-25T20:31:47.872081Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/esm-dev/esm.sh","vulnerableRanges":["<0.0.0-20250616164159-0593516c4cfa"],"patched":["0.0.0-20250616164159-0593516c4cfa"],"from":["GHSA-p2v6-84h2-5x4r","GO-2026-4554"],"provenance":"source"}],"summary":{"text":"The esm.sh content delivery network's /http(s) module fetch route contains a server-side request forgery flaw (CWE-918) in its handling of localhost and internal-target blocking. The block relies on hostname string checks that can be circumvented with DNS alias domains, so an attacker reaching the service over the network without authentication or user interaction can cause the esm.sh server to fetch internal localhost services.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:43:41Z"},"euvd":{"id":"EUVD-2026-8685","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-esm-dev-esm-sh-cve-2025-59341","parents":[{"from":"CVE-2025-59341","to":"CVE-2026-27730","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["server/router.go"],"commits":["https://github.com/esm-dev/esm.sh/commit/492de92850dd4d350c8b299af541f87541e58a45","https://github.com/esm-dev/esm.sh/commit/0593516c4cfab49ad3b4900416a8432ff2e23eb0"],"basis":"shared function","functions":["esmRouter"]}]},{"from":"CVE-2025-59342","to":"CVE-2026-27730","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["server/router.go"],"commits":["https://github.com/esm-dev/esm.sh/commit/833a29f42aeb0acbd7089a71be11dd0a292d3151","https://github.com/esm-dev/esm.sh/commit/0593516c4cfab49ad3b4900416a8432ff2e23eb0"],"basis":"shared function","functions":["esmRouter"]}]},{"from":"CVE-2025-65026","to":"CVE-2026-27730","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["server/router.go"],"commits":["https://github.com/esm-dev/esm.sh/commit/87d2f6497574bf4448641a5527a3ac2beba5fd6c","https://github.com/esm-dev/esm.sh/commit/0593516c4cfab49ad3b4900416a8432ff2e23eb0"],"basis":"shared function","functions":["esmRouter"]}]},{"from":"CVE-2026-23644","to":"CVE-2026-27730","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["server/npmrc.go"],"commits":["https://github.com/esm-dev/esm.sh/commit/9d77b88c320733ff6689d938d85d246a3af9af16","https://github.com/esm-dev/esm.sh/commit/c62ab83c589e7b421a0e1376d2a00a4e48161093","https://github.com/esm-dev/esm.sh/commit/0593516c4cfab49ad3b4900416a8432ff2e23eb0"],"basis":"shared function","functions":["getPackageInfo"]}]}]}}