{"id":"CVE-2025-65026","published":"2025-11-19T17:33:11Z","modified":"2025-11-20T14:19:17Z","title":"esm.sh CDN service has JS Template Literal Injection in CSS-to-JavaScript","vendor":"esm-dev","product":"esm.sh","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00514,"percentile":0.44702,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/esm-dev/esm.sh/security/advisories/GHSA-hcpf-qv9m-vfgp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/esm-dev/esm.sh/commit/87d2f6497574bf4448641a5527a3ac2beba5fd6c","tags":["x_refsource_MISC"]}],"priority":{"score":13.2,"factors":[{"name":"EPSS percentile","points":8.94},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"esm-dev","affectedVersions":[{"vendor":"esm-dev","product":"esm.sh","versions":["< 136"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-11-20T14:19:05.465613Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/esm-dev/esm.sh","vulnerableRanges":["<0.0.0-20251118065157-87d2f6497574"],"patched":["0.0.0-20251118065157-87d2f6497574"],"from":["GHSA-hcpf-qv9m-vfgp","GO-2025-4139"],"provenance":"source"}],"summary":{"text":"The esm.sh CDN service's CSS-to-JavaScript module conversion feature, used when a CSS file is requested with the ?module query parameter, embeds CSS content into a template literal without sanitization, enabling code injection. An unauthenticated remote attacker can craft a CSS file containing ${...} expressions that execute JavaScript when a victim application imports the converted module, requiring the victim to load that module (user interaction) and resulting in cross-site scripting in browsers or code execution in Electron applications.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:45:40Z"},"euvd":{"id":"EUVD-2025-198180","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-esm-dev-esm-sh-cve-2025-59341","parents":[{"from":"CVE-2025-59341","to":"CVE-2025-65026","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["server/router.go"],"commits":["https://github.com/esm-dev/esm.sh/commit/492de92850dd4d350c8b299af541f87541e58a45","https://github.com/esm-dev/esm.sh/commit/87d2f6497574bf4448641a5527a3ac2beba5fd6c"],"basis":"shared function","functions":["esmRouter"]}]},{"from":"CVE-2025-59342","to":"CVE-2025-65026","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["server/router.go"],"commits":["https://github.com/esm-dev/esm.sh/commit/833a29f42aeb0acbd7089a71be11dd0a292d3151","https://github.com/esm-dev/esm.sh/commit/87d2f6497574bf4448641a5527a3ac2beba5fd6c"],"basis":"shared function","functions":["esmRouter"]}]}],"children":[{"from":"CVE-2025-65026","to":"CVE-2025-50180","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["server/router.go"],"commits":["https://github.com/esm-dev/esm.sh/commit/0593516c4cfab49ad3b4900416a8432ff2e23eb0","https://github.com/esm-dev/esm.sh/commit/87d2f6497574bf4448641a5527a3ac2beba5fd6c"],"basis":"shared function","functions":["esmRouter"]}]},{"from":"CVE-2025-65026","to":"CVE-2026-27730","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["server/router.go"],"commits":["https://github.com/esm-dev/esm.sh/commit/87d2f6497574bf4448641a5527a3ac2beba5fd6c","https://github.com/esm-dev/esm.sh/commit/0593516c4cfab49ad3b4900416a8432ff2e23eb0"],"basis":"shared function","functions":["esmRouter"]}]}],"packageHistory":[{"cve":"CVE-2026-27730","published":"2026-02-25","fixed":"0.0.0-20250616164159-0593516c4cfa","kev":false},{"cve":"CVE-2026-44594","published":"2026-05-28","fixed":"0.0.0-20250616164159-0593516c4cfa","kev":false},{"cve":"CVE-2025-65025","published":"2025-11-19","fixed":"0.0.0-20251117232647-9d77b88c3207","kev":false,"link":{"from":"CVE-2025-65025","to":"CVE-2025-65026","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/esm-dev/esm.sh","fromFixed":"0.0.0-20251117232647-9d77b88c3207","toFixed":"0.0.0-20251118065157-87d2f6497574","daysApart":0}]}},{"cve":"CVE-2025-65026","published":"2025-11-19","fixed":"0.0.0-20251118065157-87d2f6497574","kev":false},{"cve":"CVE-2026-23644","published":"2026-01-18","fixed":"0.0.0-20260116051925-c62ab83c589e","kev":false,"link":{"from":"CVE-2025-65026","to":"CVE-2026-23644","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/esm-dev/esm.sh","fromFixed":"0.0.0-20251118065157-87d2f6497574","toFixed":"0.0.0-20260116051925-c62ab83c589e","daysApart":60}]}},{"cve":"CVE-2026-44593","published":"2026-05-28","fixed":"0.0.0-20260508100112-1960055e1d53","kev":false},{"cve":"CVE-2025-59342","published":"2025-09-17","fixed":"136.1","kev":false}],"package":"Go:github.com/esm-dev/esm.sh"}}