{"answers":{"affected":"3 open source packages ship an affected version, including github.com/esm-dev/esm.sh.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-59341 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2025-59341 is a high-severity path traversal vulnerability in esm-dev esm.sh, published on 17 Sep 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-59341 and fix it if it is affected.\n\nWhat it is: CVE-2025-59341 is a high-severity path traversal vulnerability in esm-dev esm.sh, published on 17 Sep 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-59341 exists.\n\nAffected packages and fixed versions:\n- github.com/esm-dev/esm.sh (Go): affected all versions; no fix listed\n- github.com/esm-dev/esm.sh (Go): affected all versions up to 136; no fix listed\n- github.com/esm-dev/esm.sh (Go): affected all versions up to 136; no fix listed\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-59341/ (Markdown: https://insights.sbomify.com/CVE-2025-59341/index.md)","id":"CVE-2025-59341","markdown":"https://insights.sbomify.com/CVE-2025-59341/index.md","name":"CVE-2025-59341","record":{"aliases":["GHSA-49pv-gwxp-532r","GO-2025-3962"],"analysis":{"component_type":"cloud_service","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"esm.sh CDN","requires_auth":"none","summary":"Attackers can exploit URL handling flaws in the esm.sh CDN to read arbitrary files from the host filesystem.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":7.7,"severity":"high","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-23","name":"Relative Path Traversal"}],"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).","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":1,"refs":[{"date":null,"kind":"nuclei","ref":"http/cves/2025/CVE-2025-59341.yaml","stars":null,"title":"esm.sh \u003c= v136 - Local File Inclusion"}],"tier":"weaponised"},"has_fix":true,"headline":"Local File Inclusion in esm.sh","id":"CVE-2025-59341","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"path_traversal","year":"2025"},"n_packages":3,"n_references":2,"next":{"headline":"esm.sh writes arbitrary files via path traversal in `X-Zone-Id` header","id":"CVE-2025-59342"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/esm-dev/esm.sh","purl":"pkg:golang/github.com/esm-dev/esm.sh","source":"GO-2025-3962"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["136"],"package":"github.com/esm-dev/esm.sh","purl":null,"source":"GHSA-49pv-gwxp-532r"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["136"],"package":"github.com/esm-dev/esm.sh","purl":"pkg:golang/github.com/esm-dev/esm.sh","source":"GHSA-49pv-gwxp-532r"}],"prev":{"headline":"jinjava Sandbox Bypass via JavaType-Based Deserialization","id":"CVE-2025-59340"},"products":["esm.sh"],"published":"2025-09-17","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-09-17","vendors":["esm-dev"]},"summary":"Attackers can exploit URL handling flaws in the esm.sh CDN to read arbitrary files from the host filesystem.","url":"https://insights.sbomify.com/CVE-2025-59341/"}