{"id":"CVE-2026-40885","summary":"goshs: Public collaborator feed leaks .goshs ACL credentials and enables unauthorized access","details":"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.","aliases":["GHSA-7h3j-592v-jcrp","GO-2026-5221"],"modified":"2026-07-08T08:09:29.956240327Z","published":"2026-04-21T19:40:37.272Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40885.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-200"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40885.json"},{"type":"ADVISORY","url":"https://github.com/patrickhener/goshs/security/advisories/GHSA-7h3j-592v-jcrp"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40885"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/goshs-labs/goshs","events":[{"introduced":"10f291dea17fb795f0008ed64c3ad7ab8c0470de"},{"fixed":"2f6b5d601d494601fa43fad9a712ee6117b7dbcd"}],"database_specific":{"extracted_events":[{"introduced":"2.0.0-beta.4"},{"fixed":"2.0.0-beta.6"}],"source":"AFFECTED_FIELD"}}],"versions":["v2.0.0-beta.5","v2.0.0-beta.4"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-40885.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V4","score":"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"}]}