patchminder
Proof of concept · CISA assessment CVE-2025-65026

Remote code executionin esm-dev esm.sh.

Published 19 Nov 2025 · Updated 20 Nov 2025 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (CISAThe US cyber defence agency. Its list names every hole it has seen used in real attacks. assessment).

Severity
Medium 6.1
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1 · no login needed
Attack likelihood
Low
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 0.5% chance in 30 days · 4 Dec 2026
Fix
Available
Fixed in 0.0.0-20251118065157-87d2f6497574, 136
In plain words

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 now
  • Upgrade esm.sh to 136 or later.
  • Upgrade github.com/esm-dev/esm.sh (Go) to 0.0.0-20251118065157-87d2f6497574 or later.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
esm.sh
before 136
136
CVE record
github.com/esm-dev/esm.sh (Go)
before 0.0.0-20251118065157-87d2f6497574
0.0.0-20251118065157-87d2f6497574
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 13 Nov 2025
    CVE ID reserved by GitHub_M.
  2. 19 Nov 2025
    Published in the CVE List.
  3. 20 Nov 2025
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (CISA assessment). CISA assessment (SSVC): exploitation poc.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
None known

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other esm.sh vulnerabilities

Same weakness: Code injection

All CWE-94 vulnerabilities

References
Cite this page

Patchminder. CVE-2025-65026: Remote code execution in esm-dev esm.sh. https://patchminder.com/cve/cve-2025-65026/ (accessed 5 December 2026).