{"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-2026-44593 exists.","fix":"Upgrade github.com/esm-dev/esm.sh to 0.0.0-20260508100112-1960055e1d53 or later.","what":"CVE-2026-44593 is a high-severity path traversal vulnerability in esm-dev esm.sh, published on 28 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-44593 and fix it if it is affected.\n\nWhat it is: CVE-2026-44593 is a high-severity path traversal vulnerability in esm-dev esm.sh, published on 28 May 2026. 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-2026-44593 exists.\n\nAffected packages and fixed versions:\n- github.com/esm-dev/esm.sh (Go): affected all versions; fixed in 0.0.0-20260508100112-1960055e1d53\n- github.com/esm-dev/esm.sh (Go): affected all versions; fixed in 0.0.0-20260508100112-1960055e1d53\n- github.com/esm-dev/esm.sh (Go): affected all versions; fixed in 0.0.0-20260508100112-1960055e1d53\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-2026-44593/ (Markdown: https://insights.sbomify.com/CVE-2026-44593/index.md)","id":"CVE-2026-44593","markdown":"https://insights.sbomify.com/CVE-2026-44593/index.md","name":"CVE-2026-44593","record":{"aliases":["GHSA-3636-h3vx-6465","GO-2026-5071"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"esm.sh CDN","requires_auth":"none","summary":"Attackers can exploit path traversal in the legacy router to write arbitrary files, potentially leading to remote code execution on the esm.sh server.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":8.7,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"esm.sh is a no-build content delivery network (CDN) for web development. In 137 and earlier, the legacy router first retrieves a response from legacyServer, parses the incoming request path, and ultimately writes the data to storage via buildStorage.Put. The router concatenates the path components without sanitizing them, producing a storage key. When this key is used, the underlying file system resolves the relative segments and writes the file to the specified path. Thus an attacker can craft a request that writes data to arbitrary locations on the server.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"esm.sh: Legacy Route Path Traversal Can Lead to RCE","id":"CVE-2026-44593","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":3,"n_references":1,"next":{"headline":"esm.sh: Path Traversal via package.json browser field allows reading arbitrary server files","id":"CVE-2026-44594"},"packages":[{"ecosystem":"Go","fixed":["0.0.0-20260508100112-1960055e1d53"],"introduced":["0"],"last_affected":[],"package":"github.com/esm-dev/esm.sh","purl":null,"source":"GHSA-3636-h3vx-6465"},{"ecosystem":"Go","fixed":["0.0.0-20260508100112-1960055e1d53"],"introduced":["0"],"last_affected":[],"package":"github.com/esm-dev/esm.sh","purl":"pkg:golang/github.com/esm-dev/esm.sh","source":"GHSA-3636-h3vx-6465"},{"ecosystem":"Go","fixed":["0.0.0-20260508100112-1960055e1d53"],"introduced":["0"],"last_affected":[],"package":"github.com/esm-dev/esm.sh","purl":"pkg:golang/github.com/esm-dev/esm.sh","source":"GO-2026-5071"}],"prev":{"headline":"Gradient: Unauthenticated worker on /proto → arbitrary NAR write / cache poisoning","id":"CVE-2026-44592"},"products":["esm.sh"],"published":"2026-05-28","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)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-06-02","vendors":["esm-dev"]},"summary":"Attackers can exploit path traversal in the legacy router to write arbitrary files, potentially leading to remote code execution on the esm.sh server.","url":"https://insights.sbomify.com/CVE-2026-44593/"}