CVE-2026-40885
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.
- CVSS 4.0
- 7.7
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 - CVSS 3.1
- 8.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - EPSS
- 0.3% chance of exploitation in the next 30 days; higher than 23% of CVEs (scores of 2026-10-26)
- CWE
- CWE-200
- Published
- Modified
- Record from
- the NVD, synced
Affected
- goshs:goshs
Packages (OSV)
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-7h3j-592v-jcrp | Go | github.com/patrickhener/goshs/v2 | >=2.0.0-beta.4 <2.0.0-beta.6 | 2.0.0-beta.6 |
| GO-2026-5221 | Go | github.com/patrickhener/goshs | all versions | no fix published |
| GO-2026-5221 | Go | github.com/patrickhener/goshs/v2 | >=2.0.0-beta.4 <2.0.0-beta.6 | 2.0.0-beta.6 |