{
  "id": "CVE-2025-65026",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-65026",
  "published_at": "2025-11-19T17:33:11.469Z",
  "title": "esm.sh CDN service has JS Template Literal Injection in CSS-to-JavaScript",
  "vendor": "esm-dev",
  "product": "esm.sh",
  "cvss": {
    "score": 9.6,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-94",
  "cpes": [
    "cpe:2.3:a:esm:esm.sh:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 6.1,
    "nvd": 9.6
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "esm-dev",
        "product": "esm.sh",
        "ranges": [
          "\u003c 136"
        ],
        "fixed_in": [
          "136"
        ]
      }
    ],
    "upgrade": [
      "Upgrade esm.sh to 136 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/esm-dev/esm.sh/security/advisories/GHSA-hcpf-qv9m-vfgp"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/esm-dev/esm.sh/commit/87d2f6497574bf4448641a5527a3ac2beba5fd6c"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
