CVE-2026-40885: goshs: Public collaborator feed leaks .goshs ACL credentials and enables unauthorized access
Vulnerability summary
CVE-2026-40885 is a high (CVSS 8.8) vulnerability in goshs. EPSS estimates a 0.45% chance of exploitation in the next 30 days, higher than 38.2% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 1 · Related 1Timeline
- 21-04-2026PublishedVulnerability first disclosed.
- 21-04-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 3 sources · 2 versions- OSV · GoEcosystem advisory · calculated7.7HighCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- NVDNIST7.7HighCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- OSV · GoEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.45%
Chance of exploitation in the next 30 days
Percentile
38%
Versus all other CVEs
30-day change
Increase +0.14 pp
From 0.31% on 22-09-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundGoshs
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Github.com/patrickhener1 product
- goshsAll versions (No fix recorded)
Github.com/patrickhener/goshs1 product
- v2≥ 2.0.0-beta.4, < 2.0.0-beta.6
Goshs1 product
- goshs2.0.0:beta4 | 2.0.0:beta5
Patrickhener1 product
- goshs≥ 2.0.0-beta.4, < 2.0.0-beta.6
4 vendors · 4 products
References
3 links- github.com/patrickhener/goshs/security/advisories/GHSA-7h3j-592v-jcrpX Refsource CONFIRMWEBAdvisoryExploitVendor Advisory