—
GO-2026-5146
SFTP root escape via prefix-based path validation in goshs in github.com/patrickhener/goshs
Quick fix
GO-2026-5146 — github.com/patrickhener/goshs/v2: upgrade to the fixed version with the command below.
go get github.com/patrickhener/goshs/v2@v2.0.0Details
SFTP root escape via prefix-based path validation in goshs in github.com/patrickhener/goshs
Are you affected?
Enter the version of the package you're using.
Affected packages
Go/github.com/patrickhener/goshs
Introduced in:
0No fixed version published yet for github.com/patrickhener/goshs (go modules). Pin to a known-safe version or switch to an alternative.
Go/github.com/patrickhener/goshs/v2
Introduced in:
0Fixed in: 2.0.0Fix
go get github.com/patrickhener/goshs/v2@v2.0.0