CVE-2025-65026
CRITICAL 9.6CVSS 3.1esm.sh CDN service has JS Template Literal Injection in CSS-to-JavaScript
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.
- Published
- 19 Nov 2025
- Last modified
- 18 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-79CWE-94
- Also known as
- GHSA-hcpf-qv9m-vfgpGO-2025-4139
- Sources
- NVDJSONOSV GHSA-hcpf-qv9m-vfgpJSONOSV GO-2025-4139JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | esm | esm.shcpe:2.3:a:esm:esm.sh:*:*:*:*:*:*:*:* |
< 136 | 136 |
| OSV | Go | github.com/esm-dev/esm.sh | < 0.0.0-20251118065157-87d2f6497574 | 0.0.0-20251118065157-87d2f6497574 |
References
- https://github.com/esm-dev/esm.sh/commit/87d2f6497574bf4448641a5527a3ac2beba5fd6c · Patch, WEB, FIX
- https://github.com/esm-dev/esm.sh/security/advisories/GHSA-hcpf-qv9m-vfgp · Exploit, Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2025-65026 · ADVISORY
- https://github.com/esm-dev/esm.sh · PACKAGE
History
- 25 Nov 2026 20:59 UTC · NVD: first stored (published 19 Nov 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Nov 2025)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 19 Nov 2025)