Skip to main content
VulnerabilityPublished Updated

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

0
Compare
Authoritative record:CVE-2025-65026· Medium 6.1

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

CVSS 3.1 base score
6.1Medium
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (GitHub_M)CVSS 3.16.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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 19 Nov 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: 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 18 Nov 2026.

What to do

Upgrade github.com/esm-dev/esm.sh to 0.0.0-20251118065157-87d2f6497574.

Affected software

ProductAffectedFixed in
Gogithub.com/esm-dev/esm.shAffected
  • <0.0.0-20251118065157-87d2f6497574
Fixed in
  • 0.0.0-20251118065157-87d2f6497574

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.

References

Community reviews

Loading reviews…