CVE-2026-40885 goshs: Public collaborator feed leaks .goshs ACL credentials and enables unauthorized access
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: total
Description
goshs is a SimpleHTTPServer written in Go. From 2.0.0-beta.4 to 2.0.0-beta.5, goshs leaks file-based ACL credentials through its public collaborator feed when the server is deployed without global basic auth. Requests to .goshs-protected folders are logged before authorization is enforced, and the collaborator websocket broadcasts raw request headers, including Authorization. An unauthenticated observer can capture a victim's folder-specific basic-auth header and replay it to read, upload, overwrite, and delete files inside the protected subtree. This vulnerability is fixed in 2.0.0-beta.6.
Upgrade path
3 packages: 0 fixed, 1 partially fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| patrickhener goshs(Go) | >= 2.0.0-beta.4, < 2.0.0-beta.6; >= 2.0.0-beta.4, <= 2.0.0-beta.5; All versions | 2.0.0-beta.6 | Partially fixed |
| goshs | = 2.0.0-beta4; = 2.0.0-beta5 | No fix listed | Versions listed |
| patrickhener goshs | = >= 2.0.0-beta.4, < 2.0.0-beta.6 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| patrickhener goshs(Go) | >= 2.0.0-beta.4, < 2.0.0-beta.6 | 2.0.0-beta.6 |
| patrickhener goshs(Go) | All versions | No fix listed |
| patrickhener goshs | = >= 2.0.0-beta.4, < 2.0.0-beta.6 | No fix listed |
| patrickhener goshs(Go) | >= 2.0.0-beta.4, <= 2.0.0-beta.5 | No fix listed |
| goshs | = 2.0.0-beta4 | No fix listed |
| goshs | = 2.0.0-beta5 | No fix listed |
References
- https://github.com/patrickhener/goshs/security/advisories/GHSA-7h3j-592v-jcrp exploit vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com product
- github.com