Security Digest · Vulnerability record

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

Wish is an SSH server with defaults and a collection of middlewares.

CVSS 9.6 Critical EPSS 0.5% · p43

Should you act?

Critical, preconditions apply

Severe if exploited, but exploitation needs conditions that may not apply to you. This signal is computed from CISA KEV, EPSS and CVSS data; it is not an editorial verdict.

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

From the GitHub advisory

Summary

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.

Affected Versions

- charm.land/wish/v2 — all versions through commit 72d67e6 (current main) - github.com/charmbracelet/wish — likely all v1 versions (same code pattern)

Details

Weakness type: CWE-22.

Product: charm.land/wish/v2 (Go) · Assigned by: GitHub_M · Published: 2026-05-07

Affected and fixed versions

EcosystemPackageVulnerableFirst fixed
Gocharm.land/wish/v2< 2.0.12.0.1
Gogithub.com/charmbracelet/wish<= 1.4.7none listed
VendorProductAffected versions (per CVE record)
charmbraceletwish>= 2.0.0, < 2.0.1

Severity scores

Scored byCVSSScoreVector
GitHub_M3.19.6 CriticalCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N
GitHub3.19.6 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N
  • Attack vector: network (remotely reachable)
  • Attack complexity: low
  • Privileges required: low (any account)
  • User interaction: none
  • Scope: changed (can affect other components)

CVSS measures how bad a flaw is if exploited, not how likely exploitation is. Read it next to the exploitation data below.

Exploitation and urgency

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

Timeline

  • — GitHub-reviewed advisory GHSA-xjvp-7243-rg9h published (critical)
  • — CVE record last updated
  • — CVE record published by GitHub_M

Sources and references

Original sources first. Version and fix details should always be confirmed against the vendor or project advisory.

Vulnerability records

  1. GitHub Advisory GHSA-xjvp-7243-rg9h github.com
  2. CVE.org record CVE-2026-41589 cve.org
  3. NVD entry CVE-2026-41589 nvd.nist.gov

Other references from the CVE record and advisory

  1. github.com github.com
  2. github.com github.com

Critical Go advisories · Today’s Security Digest