CVE-2026-27730

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

Published Feb 25, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

esm.sh is a CDN that fetches JavaScript packages via a public /http(s) route. A flaw (CWE‑918) in that endpoint allows an attacker to bypass the check that blocks localhost and internal targets by using DNS alias domains, turning the service into an SSRF tool capable of requesting internal localhost services. This can expose data or services that should remain private to an external attacker, and as of the time of publication no patched versions are available.

Affected Systems

The vulnerable product is esm.sh, maintained by esm-dev, with releases up to and including version 137 affected. No newer versions were available at the time of publication.

Risk and Exploitability

The CVSS base score of 7.5 indicates high severity, while the EPSS score of less than 1% suggests a low likelihood of exploitation. The vulnerability is not yet listed in the CISA KEV catalog. An external attacker can trigger the SSRF by sending HTTP requests to the /http(s) endpoint with crafted URLs, demonstrating a remote network attack vector and relying on the CDN’s ability to resolve arbitrary DNS queries.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Block outbound traffic from your esm.sh instance to internal IP ranges (127.0.0.0/8, 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) using firewall rules.
  • Disable or restrict the /http(s) fetch endpoint if a direct package fetch from your origin servers is possible.
  • Monitor requests to the /http(s) endpoint for unusual or internal hostname patterns and investigate anomalous traffic.

Generated by OpenCVE AI on April 18, 2026 at 10:41 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-p2v6-84h2-5x4r esm.sh has SSRF localhost/private-network bypass in `/http(s)` module route
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Esm
Esm esm.sh
CPEs cpe:2.3:a:esm:esm.sh:*:*:*:*:*:*:*:*
Vendors & Products Esm
Esm esm.sh
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'}

Type Values Removed Values Added
First Time appeared Esm-dev
Esm-dev esmsh
Vendors & Products Esm-dev
Esm-dev esmsh
Type Values Removed Values Added
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.
Title esm.sh has SSRF localhost/private-network bypass in `/http(s)` module route
Weaknesses CWE-918
References
Metrics cvssV3_0

{'score': 8.6, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N'}

Weaknesses
  • CWE-918

    Server-Side Request Forgery (SSRF)

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Feb 25, 2026, 8:32 PM
Reserved
Feb 23, 2026, 6:37 PM
Status
Analyzed
Published
Feb 25, 2026, 4:23 PM
Modified
Jun 17, 2026, 10:27 AM