CVE-2025-65026CWE-79CWE-94cross-site-scriptingcode-injection

CVE-2025-65026

Medium · published November 19, 2025

CVSS v3.1
6.1
EPSS
1%
Percentile
43.0
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
6.1 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
CVSS v4.0
Not supplied
EPSS
0.00514 · 43.0th percentile
Weaknesses
CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'); CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2025-11-19T23:15Z
Affected products (1)
ProductVersionsFixed in
esm/esm.sh< 136136
References (3)
EPSS history
Timeline
  • 19 NOV 17:33Z
    esm.sh CDN service has JS Template Literal Injection in CSS-to-JavaScript
    cvelistv5