{"answers":{"affected":"5 open source packages ship an affected version, including github.com/charmbracelet/wish and charm.land/wish/v2. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-41589 exists.","fix":"Apply the vendor's patch.","what":"CVE-2026-41589 is a critical path traversal vulnerability in charmbracelet wish, published on 7 May 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-41589 and fix it if it is affected.\n\nWhat it is: CVE-2026-41589 is a critical path traversal vulnerability in charmbracelet wish, published on 7 May 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-41589 exists.\n\nAffected packages and fixed versions:\n- github.com/charmbracelet/wish (Go): affected all versions up to 1.4.7; no fix listed\n- github.com/charmbracelet/wish (Go): affected all versions up to 1.4.7; no fix listed\n- charm.land/wish/v2 (Go): affected all versions; fixed in 2.0.1\n- charm.land/wish/v2 (Go): affected all versions; fixed in 2.0.1\n- charm.land/wish/v2 (Go): affected all versions; fixed in 2.0.1\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-41589/ (Markdown: https://insights.sbomify.com/CVE-2026-41589/index.md)","id":"CVE-2026-41589","markdown":"https://insights.sbomify.com/CVE-2026-41589/index.md","name":"CVE-2026-41589","record":{"aliases":["GHSA-xjvp-7243-rg9h","GO-2026-5762"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Go SSH server library","requires_auth":"low_privilege","summary":"A malicious SCP client can read or write arbitrary files on the server via path traversal in the Wish SSH library.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"wish","vendor":"charm"}],"cvss":{"score":9.6,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"Wish is an SSH server with defaults and a collection of middlewares. From version 2.0.0 to before version 2.0.1, the SCP middleware in charm.land/wish/v2 is vulnerable to path traversal attacks. A malicious SCP client can read arbitrary files from the server, write arbitrary files to the server, and create directories outside the configured root directory by sending crafted filenames containing ../ sequences over the SCP protocol. This issue has been patched in version 2.0.1.","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":"Wish has SCP Path Traversal that allows arbitrary file read/write","id":"CVE-2026-41589","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":5,"n_references":2,"next":{"headline":"Marko: XSS via case-insensitive script/style closing tag bypass in runtime HTML escaping","id":"CVE-2026-41591"},"packages":[{"ecosystem":"Go","fixed":["2.0.1"],"introduced":["0"],"last_affected":[],"package":"charm.land/wish/v2","purl":null,"source":"GHSA-xjvp-7243-rg9h"},{"ecosystem":"Go","fixed":["2.0.1"],"introduced":["0"],"last_affected":[],"package":"charm.land/wish/v2","purl":"pkg:golang/charm.land/wish/v2","source":"GHSA-xjvp-7243-rg9h"},{"ecosystem":"Go","fixed":["2.0.1"],"introduced":["0"],"last_affected":[],"package":"charm.land/wish/v2","purl":"pkg:golang/charm.land/wish/v2","source":"GO-2026-5762"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["1.4.7"],"package":"github.com/charmbracelet/wish","purl":null,"source":"GHSA-xjvp-7243-rg9h"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["1.4.7"],"package":"github.com/charmbracelet/wish","purl":"pkg:golang/github.com/charmbracelet/wish","source":"GHSA-xjvp-7243-rg9h"}],"prev":{"headline":"RELATE: Timing Attack Vulnerability in course/auth.py — check_sign_in_key()","id":"CVE-2026-41588"},"products":["wish"],"published":"2026-05-07","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":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-05-07","vendors":["charmbracelet"]},"summary":"A malicious SCP client can read or write arbitrary files on the server via path traversal in the Wish SSH library.","url":"https://insights.sbomify.com/CVE-2026-41589/"}