{"cve":"CVE-2025-65026","nvd":{"published":"2025-11-19T18:15:50.023","modified":"2026-10-18T20:10:00.110","status":"Analyzed","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_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","score":9.6},"cwes":["CWE-79","CWE-94"],"references":["https://github.com/esm-dev/esm.sh/commit/87d2f6497574bf4448641a5527a3ac2beba5fd6c","https://github.com/esm-dev/esm.sh/security/advisories/GHSA-hcpf-qv9m-vfgp","https://github.com/esm-dev/esm.sh/security/advisories/GHSA-hcpf-qv9m-vfgp"],"products":["esm:esm.sh"],"source":"nvd","synced_at":"2026-10-19T22:16:02.354564667+00:00"},"epss":{"cve":"CVE-2025-65026","score":0.00514,"percentile":0.43544,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-hcpf-qv9m-vfgp","url":"https://osv.dev/vulnerability/GHSA-hcpf-qv9m-vfgp","summary":"esm.sh CDN service has JS Template Literal Injection in CSS-to-JavaScript","modified":"2025-11-27T09:09:00.522842Z","packages":[{"ecosystem":"Go","name":"github.com/esm-dev/esm.sh","purl":"pkg:golang/github.com/esm-dev/esm.sh","ranges":["<0.0.0-20251118065157-87d2f6497574"],"fixed":["0.0.0-20251118065157-87d2f6497574"]}]},{"id":"GO-2025-4139","url":"https://osv.dev/vulnerability/GO-2025-4139","summary":"esm.sh CDN service has JS Template Literal Injection in CSS-to-JavaScript in github.com/esm-dev/esm.sh","modified":"2026-03-03T04:57:40.154918Z","packages":[{"ecosystem":"Go","name":"github.com/esm-dev/esm.sh","purl":"pkg:golang/github.com/esm-dev/esm.sh","ranges":["<0.0.0-20251118065157-87d2f6497574"],"fixed":["0.0.0-20251118065157-87d2f6497574"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}