# CVE-2025-65026: esm.sh CDN service has JS Template Literal Injection in CSS-to-JavaScript

- Priority: **Routine**
- Reason: Not severe (CVSS 6.1, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-11-19 · Modified: 2025-11-20
- Aliases: GHSA-hcpf-qv9m-vfgp, GO-2025-4139
- Record: https://cvemate.com/vulnerability/CVE-2025-65026 · JSON: https://cvemate.com/vulnerability/CVE-2025-65026/json

## Description

```text
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.
```

## Signals

- CVSS: 9.6 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
- EPSS: 0.514%, percentile 45.349%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- esm-dev esm.sh: \< 136
- esm esm.sh: \< 136
- github.com/esm-dev esm.sh (Go): \< 0.0.0-20251118065157-87d2f6497574

## References

- <https://github.com/esm-dev/esm.sh/security/advisories/GHSA-hcpf-qv9m-vfgp>
- <https://github.com/esm-dev/esm.sh/commit/87d2f6497574bf4448641a5527a3ac2beba5fd6c>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-65026>
- <https://github.com/esm-dev/esm.sh>

---

Data as of 2026-12-05T14:09:13.445Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
