---
title: "CVE-2026-41589: Wish has SCP Path Traversal that allows arbitrary file read/write"
url: https://erroneo.us/security/cve/CVE-2026-41589/
description: "CVE-2026-41589 (charm.land/wish/v2 (Go)): Wish is an SSH server with defaults and a collection of middlewares. From version 2.0.0 to before version 2.0.1…"
type: vulnerability-record
section: "Security Digest"
date_published: 2026-05-07
date_modified: 2026-05-08
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2026-41589"
kev: false
cvss: 9.6
epss: 0.00513
license: All rights reserved. Quote with attribution and a link.
---

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

**Signal:** Critical, preconditions apply. Severe if exploited, but exploitation needs conditions that may not apply to you. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- Not in CISA KEV , but CISA’s SSVC assessment records a public proof-of-concept, so attack code exists.
- EPSS 0.5% , percentile 43: FIRST’s model estimates a 0.5% chance of exploitation activity in the next 30 days, higher than 43% of all scored CVEs (low). EPSS is a probability, not a verdict.
- Needs an account (low (any account)). Exposure depends on who can log in.
- Only applies if your dependency tree includes charm.land/wish/v2 (Go) < 2.0.1, fixed in 2.0.1 ; github.com/charmbracelet/wish (Go) <= 1.4.7, no fixed version listed . Check your lockfile, including transitive dependencies.

## What it is

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.

## Affected packages

- Go `charm.land/wish/v2` < 2.0.1 → fixed: 2.0.1
- Go `github.com/charmbracelet/wish` <= 1.4.7 → fixed: none listed

## Affected products (CVE record)

- charmbracelet wish: >= 2.0.0, < 2.0.1

## Severity

- GitHub_M CVSS 3.1: 9.6 `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N`
- GitHub CVSS 3.1: 9.6 `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation poc , automatable no , technical impact total .
- FIRST EPSS (model of 2026-10-21): 0.51% probability of exploitation activity in the next 30 days; percentile 43.

## Sources

- [GitHub Advisory GHSA-xjvp-7243-rg9h](https://github.com/advisories/GHSA-xjvp-7243-rg9h)
- [CVE.org record CVE-2026-41589](https://www.cve.org/CVERecord?id=CVE-2026-41589)
- [NVD entry CVE-2026-41589](https://nvd.nist.gov/vuln/detail/CVE-2026-41589)
- [github.com](https://github.com/charmbracelet/wish/security/advisories/GHSA-xjvp-7243-rg9h)
- [github.com](https://github.com/charmbracelet/wish/releases/tag/v2.0.1)

---
Source page: https://erroneo.us/security/cve/CVE-2026-41589/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
