9.6

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

CVSS: 9.6v3.1CriticalAnalyzed
AliasesGHSA-hcpf-qv9m-vfgpGO-2025-4139
Published 19-11-2025Last modified 20-11-2025

Vulnerability summary

CVE-2025-65026 is a critical (CVSS 9.6) Code Injection vulnerability in esm-dev esm.sh. EPSS estimates a 0.48% chance of exploitation in the next 30 days, higher than 40% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
70/100
0100
High · default modelHow is this calculated?
CVSS score
9.6/10
010
Critical · v3.1 (NVD)
EPSS score
0.48%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1github

Advisory lineage

Upstream 0 · Downstream 2 · Related 2

Timeline

  1. 19-11-2025
    PublishedVulnerability first disclosed.
  2. 20-11-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

3 scores · 3 sources · 1 version

EPSS trend

Probability

0.48%

Chance of exploitation in the next 30 days

Percentile

40%

Versus all other CVEs

30-day change

0.00 pp

From 0.48% on 18-09-2026

18-09-202618-10-2026
EPSS score
0.48%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • githubUnverified

    Esm.Sh

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Esm1 product
Esm-dev1 product
Github.com/esm-dev1 product
  • esm.sh< 0.0.0-20251118065157-87d2f6497574

3 vendors · 3 products

References

4 links