CVE-2025-65026Esm.sh
Critical 9.6 No auth needed
Follow: this CVE · Esm · Esm.sh We alert you by email or Slack (account required).
- Priority
- 73
- CVSS 3.1
- 9.6
- EPSS
- —
- Auth required
- No
- Published
- Nov 19, 2025
- Updated
- Oct 18, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
What happens
esm.sh is a nobuild content delivery network(CDN) for modern web development. Prior to version 136, The esm.sh CDN service contains a Template Literal Injection vulnerability (CWE-94) in its CSS-to-JavaScript module conversion feature. When a CSS file is requested with the ?module query parameter, esm.sh converts it to a JavaScript module by embedding the CSS content directly into a template literal without proper sanitization. An attacker can inject malicious JavaScript code using ${...} expressions within CSS files, which will execute when the module is imported by victim applications. This enables Cross-Site Scripting (XSS) in browsers and Remote Code Execution (RCE) in Electron applications. This issue has been patched in version 136.
What to do
- Apply the vendor's security update for Esm.sh.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/esm-dev/esm.sh |
< 0.0.0-20251118065157-87d2f6497574 |
0.0.0-20251118065157-87d2f6497574 |
go get github.com/esm-dev/esm.sh@v0.0.0-20251118065157-87d2f6497574 |
| Go | github.com/esm-dev/esm.sh |
< 0.0.0-20251118065157-87d2f6497574 |
0.0.0-20251118065157-87d2f6497574 |
go get github.com/esm-dev/esm.sh@v0.0.0-20251118065157-87d2f6497574 |
Per OSV / GitHub Advisories (GHSA-hcpf-qv9m-vfgp, GO-2025-4139). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| esm | esm.sh | < 136 |
Official advisories
- Security update for govulncheck-vulndb · SUSE · openSUSE-SU-2026:21483-1 · Jul 30, 2026 Critical
- Security update for govulncheck-vulndb · SUSE · SUSE-SU-2025:4395-1 · Dec 15, 2025 Critical
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Exploit Vendor Advisory