Vulnerability · Published Apr 21, 2026 · Assigned by GitHub_M
CVE-2026-40885goshs: Public collaborator feed leaks .goshs ACL credentials and enables unauthorized access
High 7.7
In plain English
A high-severity information exposure in goshs from patrickhener. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 24% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/patrickhener/goshs | no fix listed | GO-2026-5221 |
| Go | github.com/patrickhener/goshs/v2 | 2.0.0-beta.6 | GHSA-7h3j-592v-jcrp |
| Go | github.com/patrickhener/goshs/v2 | 2.0.0-beta.6 | GO-2026-5221 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| patrickhener | goshs | >= 2.0.0-beta.4, < 2.0.0-beta.6 |
Weakness: CWE-200 · Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
References
- https://github.com/patrickhener/goshs/security/advisories/GHSA-7h3j-592v-jcrp x_refsource_CONFIRM