Skip to content
OpenAdvisories
High · 8.1 CVE-2026-53980 EUVD-2026-118276GHSA-6g36-8q6x-8384

Charmbracelet Wish 2.0.5 Path Traversal via git Middleware

Published Nov 6, 2026 · Updated Nov 8, 2026 · Assigned by VulnCheck

Description

Charmbracelet wish before 2.0.5 contains a path traversal vulnerability in the git middleware (charm.land/wish/v2) that allows authenticated SSH users to escape the configured repository directory by supplying crafted repo paths that bypass a flawed forward-slash-count containment check in git.Middleware(). Attackers can use a single-depth path ../evil, or on Windows a payload ..\..\evil that defeats the slash-count guard entirely, to read or write arbitrary repositories outside the intended root via git-upload-pack, git-upload-archive, or git-receive-pack.

Affected products

VendorProductAffectedFixed
charmbracelet wish < 2.0.5 2.0.5

References