Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/charmbracelet/wish
  4. ›
  5. GHSA-xjvp-7243-rg9h

GHSA-xjvp-7243-rg9h: Wish has SCP Path Traversal that allows arbitrary file read/write

April 18, 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
  • github.com/charmbracelet/wish/security/advisories/GHSA-xjvp-7243-rg9h

Code Behaviors & Features

Detect and mitigate GHSA-xjvp-7243-rg9h with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 1.4.7

Solution

Unfortunately, there is no solution available yet.

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/github.com/charmbracelet/wish/GHSA-xjvp-7243-rg9h.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sat, 09 May 2026 12:18:25 +0000.