Vulnerability · Published Sep 17, 2025 · Assigned by GitHub_M

CVE-2025-59341Local File Inclusion in esm.sh

High 7.7

In plain English

A high-severity security flaw in esm.sh from esm-dev. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.6% (higher than 76% of all known vulnerabilities). Ready-made attack tooling exists: Nuclei.

Severity (CVSS 4.0)7.7High
Exploit odds (30 days)1.6%top 23.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack tooling1Nuclei

Official description

esm.sh is a nobuild content delivery network(CDN) for modern web development. In 136 and earlier, a Local File Inclusion (LFI) issue was identified in the esm.sh service URL handling. An attacker could craft a request that causes the server to read and return files from the host filesystem (or other unintended file sources).

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/esm-dev/esm.shno fix listedGHSA-49pv-gwxp-532r
Gogithub.com/esm-dev/esm.shno fix listedGO-2025-3962

Affected products (as reported)

VendorProductVersions
esm-dev esm.sh <= 136

Weakness: CWE-23 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:P

References