Skip to main content
CVE-2025-65026VulnerabilityPublished

CVE-2025-65026: esm.sh · Code Injection

Affects esm.shSource CVE Database V5

0

Not known to be exploited · CVSS 6.1 Medium : upgrade to 136 when convenient.

Data as of 25 Oct 2026, 19:02 UTC

CVSS 3.1 base score
6.1Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.5% chance of exploitation in 30 days – higher than 43% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 136
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 19 Nov 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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 2026-10-25.

What to do

Upgrade esm-dev/esm.sh to 136.

Affected software

ProductAffectedFixed in
GitHubesm-dev/esm.shpkg:github/esm-dev/esm.shOther threatsAffected
  • <136
Fixed in
  • 136

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

European organizations should immediately upgrade esm.sh dependencies to version 136 or later to apply the official patch. They should audit their use of esm.sh CDN, particularly any CSS modules imported with the ?module parameter, to identify and remove potentially malicious or untrusted CSS files. Implementing Content Security Policy (CSP) headers that restrict script execution sources can help mitigate XSS risks. For Electron applications, developers should enforce strict validation and sanitization of all imported modules and consider sandboxing techniques to limit code execution privileges. Monitoring network traffic for unusual requests to esm.sh endpoints and employing runtime application self-protection (RASP) can detect and block exploitation attempts. Additionally, educating developers about the risks of dynamic code generation and template literal injection can prevent similar vulnerabilities. Organizations should also maintain an inventory of third-party dependencies and CDN usage to quickly respond to future vulnerabilities.

Description

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.

References

Community reviews

Loading reviews…