# patrickhener goshs SSH host key verification bypass in tunnel

Source: https://junglewise.ai/threats/patrickhener-goshs-ssh-host-key-verification-bypass-in-tunnel-1212be19  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-05-15. Updated: 2026-05-15  
License: CC BY 4.0 with a link back

Severity: high · CVSS 7.4 · Published 2026-05-15

goshs is a tool used to share files and create web tunnels for local development. A security flaw in its tunneling feature allows an attacker on the same network to intercept and modify all web traffic passing through the tunnel. This could lead to the theft of login credentials, sensitive files, or the injection of malicious code into the web pages being served.

Technologies: [goshs.de/goshs/v2 (Go)](https://junglewise.ai/threats/technologies/goshs-de-goshs-v2). Vendors: [Go](https://junglewise.ai/threats/vendors/go).

## Quick answers

**Is This vulnerability exploited in the wild?** No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.

**How severe is This vulnerability?** High severity, with a CVSS score of 7.4, published 15 May 2026.

**Which products and versions are affected?** goshs.de/goshs/v2 (Go) <= 2.0.6.

**Is there a fix for This vulnerability?** A patch was published on 2026-05-15. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is This vulnerability attacked?** It is attacked over the network, in a software library.

**Am I affected?** Check whether you run goshs.de/goshs/v2 (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

The goshs '--tunnel' flag initiates an outbound SSH connection to 'localhost.run' using the 'ssh.InsecureIgnoreHostKey()' callback, which disables all host key verification. An attacker positioned on the network path (e.g., via ARP spoofing, DNS hijacking, or a compromised router) can intercept this connection and present a rogue SSH host key. Because the tunnel carries plaintext HTTP traffic, the attacker can read and modify all requests and responses, including headers, authentication tokens, and body content. This vulnerability was addressed in version 2.0.7 by implementing a Trust-On-First-Use (TOFU) mechanism.

## Affected products

- patrickhener goshs <= 2.0.6

## Timeline

- 2026-05-11: disclosed
- 2026-05-15: advisory
- 2026-05-15: patched

## References

- [https://api.github.com/users/offset](https://api.github.com/users/offset)
- [https://github.com/offset](https://github.com/offset)
- [https://api.github.com/users/offset/gists%7B/gist_id%7D](https://api.github.com/users/offset/gists%7B/gist_id%7D)
- [https://api.github.com/users/offset/repos](https://api.github.com/users/offset/repos)
- [https://avatars.githubusercontent.com/u/114768995?v=4](https://avatars.githubusercontent.com/u/114768995?v=4)
- [https://api.github.com/users/offset/events%7B/privacy%7D](https://api.github.com/users/offset/events%7B/privacy%7D)

## Related threats

- [patrickhener goshs race condition in share-link download limit](https://junglewise.ai/threats/cve-2026-50139-patrickhener-goshs-race-condition-in-share-link-download-limit)
- [patrickhener goshs access control bypass in WebDAV listener](https://junglewise.ai/threats/cve-2026-50138-patrickhener-goshs-access-control-bypass-in-webdav-listener)
- [goshs-labs goshs ACL bypass via trailing slash in sendFile handler](https://junglewise.ai/threats/cve-2026-66064-goshs-labs-goshs-acl-bypass-via-trailing-slash-in-sendfile)
- [goshs path traversal in multipart upload handler](https://junglewise.ai/threats/cve-2026-66063-goshs-path-traversal-in-multipart-upload-handler)
- [goshs WebDAV deletion bypass via MOVE and COPY methods](https://junglewise.ai/threats/cve-2026-64863-goshs-webdav-deletion-bypass-via-move-and-copy-methods)
