# CVE-2026-27730: esm.sh has SSRF localhost/private-network bypass in `/http(s)` module route

- Severity: High 8.6 (CVSS:3.0, scored by GitHub_M) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.40%, higher than 35% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-02-25T15:37:01.753Z
- Modified: 2026-06-17T10:27:34.187Z
- Also known as: GHSA-p2v6-84h2-5x4r, GO-2026-4554
- Weaknesses: CWE-918
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- esm-dev esm.sh: <= 137
- github.com/esm-dev/esm.sh (Go): before 0.0.0-20250616164159-0593516c4cfa
- esm esm.sh: up to 137

## Every score

- GitHub_M: CVSS:3.0 8.6 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N`
- GitHub: CVSS:3.0 8.6 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/esm-dev/esm.sh/security/advisories/GHSA-p2v6-84h2-5x4r> (exploit, advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-27730> (advisory)
- <https://github.com/esm-dev/esm.sh/pull/1149> (fix, web)
- <https://github.com/esm-dev/esm.sh/commit/0593516c4cfab49ad3b4900416a8432ff2e23eb0> (fix, web)
- <https://github.com/esm-dev/esm.sh> (package)
- <https://github.com/esm-dev/esm.sh/releases/tag/v137> (web)

## Sources

- CVE List: [CVE-2026-27730](https://www.cve.org/CVERecord?id=CVE-2026-27730), CVE Terms of Use, modified 2026-02-25
- GitHub Advisory Database: [GHSA-p2v6-84h2-5x4r](https://github.com/advisories/GHSA-p2v6-84h2-5x4r), CC-BY-4.0, modified 2026-03-09
- Go Vulnerability Database: [GO-2026-4554](https://pkg.go.dev/vuln/GO-2026-4554), CC-BY-4.0, modified 2026-03-09
- NVD: [CVE-2026-27730](https://nvd.nist.gov/vuln/detail/CVE-2026-27730), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-27730 · Whole record: https://cve.day/CVE-2026-27730.json · Rebuilt by cve.day 2026-11-25T22:59:14.848Z
