Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. charm.land/wish/v2
  4. ›
  5. CVE-2026-41589

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

April 18, 2026 (updated May 8, 2026)

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.

References

  • github.com/advisories/GHSA-xjvp-7243-rg9h
  • github.com/charmbracelet/wish/releases/tag/v2.0.1
  • github.com/charmbracelet/wish/security/advisories/GHSA-xjvp-7243-rg9h
  • nvd.nist.gov/vuln/detail/CVE-2026-41589

Code Behaviors & Features

Detect and mitigate CVE-2026-41589 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 2.0.1

Fixed versions

  • 2.0.1

Solution

Upgrade to version 2.0.1 or above.

Impact 9.6 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

go/charm.land/wish/v2/CVE-2026-41589.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:09 +0000.