{"id":"CVE-2025-59341","published":"2025-09-17T17:55:25Z","modified":"2025-09-17T18:09:50Z","title":"Local File Inclusion in esm.sh","vendor":"esm-dev","product":"esm.sh","tier":"tail","description":{"text":"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).","provenance":"source","from":"CVE.org"},"cvss":{"score":7.7,"severity":"HIGH","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01636,"percentile":0.76955,"provenance":"source"},"cwes":[{"id":"CWE-23","name":"Relative Path Traversal"}],"references":[{"url":"https://github.com/esm-dev/esm.sh/security/advisories/GHSA-49pv-gwxp-532r","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/esm-dev/esm.sh/blob/c62f191d32639314ff0525d1c3c0e19ea2b16143/server/router.go#L1168","tags":["x_refsource_MISC"]}],"priority":{"score":25.8,"factors":[{"name":"EPSS percentile","points":15.39},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.39}]},"exploitSources":{"nuclei":[{"id":"CVE-2025-59341","name":"esm.sh <= v136 - Local File Inclusion","severity":"high","path":"http/cves/2025/CVE-2025-59341.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-59341.yaml"}],"provenance":"source"},"vendorSlug":"esm-dev","affectedVersions":[{"vendor":"esm-dev","product":"esm.sh","versions":["<= 136"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2025-09-17T18:07:46.500692Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/esm-dev/esm.sh","vulnerableRanges":["<=136","all versions"],"patched":[],"from":["GHSA-49pv-gwxp-532r","GO-2025-3962"],"provenance":"source"}],"euvd":{"id":"EUVD-2025-29745","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-esm-dev-esm-sh-cve-2025-59341","children":[{"from":"CVE-2025-59341","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/492de92850dd4d350c8b299af541f87541e58a45"],"basis":"shared function","functions":["esmRouter"]}]},{"from":"CVE-2025-59341","to":"CVE-2025-59342","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/833a29f42aeb0acbd7089a71be11dd0a292d3151"],"basis":"shared function","functions":["esmRouter"]}]},{"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-59341","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/492de92850dd4d350c8b299af541f87541e58a45","https://github.com/esm-dev/esm.sh/commit/0593516c4cfab49ad3b4900416a8432ff2e23eb0"],"basis":"shared function","functions":["esmRouter"]}]}]}}