CVE-2025-65026: github.com/esm-dev/esm.sh · esm.sh CDN service has JS Template Literal Injection in CSS-to-JavaScript
Affects github.com/esm-dev/esm.shSource GCVE Database
Not known to be exploited · CVSS 6.1 Medium : upgrade to 0.0.0-20251118065157-87d2f6497574 when convenient.
Data as of 19 Nov 2026, 02:50 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 6.1 |
|---|
- Patch
- Available – fixed in 0.0.0-20251118065157-87d2f6497574
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 19 Nov 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 18 Nov 2026.
What to do
Upgrade github.com/esm-dev/esm.sh to 0.0.0-20251118065157-87d2f6497574.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Gogithub.com/esm-dev/esm.sh | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix for this vulnerability is available in esm.sh version 0.0.0-20251118065157-87d2f6497574. Users and administrators should upgrade to this fixed version to mitigate the risk. No additional mitigation steps are required beyond applying the official patch.
Description
The esm.sh CDN service has 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 properly escaping template expressions (${...}). This allows an attacker to inject malicious JavaScript code that executes when the module is imported, enabling Cross-Site Scripting (XSS) in browsers and Remote Code Execution (RCE) in Electron applications. The vulnerability is due to incomplete sanitization that only checks for backticks but not for template literal expressions. A fix is available in version 0.0.0-20251118065157-87d2f6497574.