Live threats

All CVEs / Esm

CVE-2025-65026Esm.sh

Critical 9.6 No auth needed

Priority
73
CVSS 3.1
9.6
EPSS
—
Auth required
No
Published
Nov 19, 2025
Updated
Oct 18, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-94, CWE-79
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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Esm.sh.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
esmesm.sh< 136

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.