{"cve":"CVE-2026-40885","nvd":{"published":"2026-04-21T20:17:02.257","modified":"2026-10-26T21:10:00.170","status":"Analyzed","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_v4":{"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","score":7.7},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8},"cwes":["CWE-200"],"references":["https://github.com/patrickhener/goshs/security/advisories/GHSA-7h3j-592v-jcrp","https://github.com/patrickhener/goshs/security/advisories/GHSA-7h3j-592v-jcrp"],"products":["goshs:goshs"],"source":"nvd","synced_at":"2026-10-26T21:38:48.864438205+00:00"},"epss":{"cve":"CVE-2026-40885","score":0.00311,"percentile":0.23741,"date":"2026-10-26"},"kev":null,"osv":[{"id":"GHSA-7h3j-592v-jcrp","url":"https://osv.dev/vulnerability/GHSA-7h3j-592v-jcrp","summary":"goshs's public collaborator feed leaks .goshs ACL credentials and enables unauthorized access","modified":"2026-06-25T19:56:15.555609716Z","packages":[{"ecosystem":"Go","name":"github.com/patrickhener/goshs/v2","purl":"pkg:golang/github.com/patrickhener/goshs/v2","ranges":[">=2.0.0-beta.4 <2.0.0-beta.6"],"fixed":["2.0.0-beta.6"]}]},{"id":"GO-2026-5221","url":"https://osv.dev/vulnerability/GO-2026-5221","summary":"goshs's public collaborator feed leaks .goshs ACL credentials and enables unauthorized access in github.com/patrickhener/goshs","modified":"2026-06-25T19:45:16.298663548Z","packages":[{"ecosystem":"Go","name":"github.com/patrickhener/goshs","purl":"pkg:golang/github.com/patrickhener/goshs","ranges":["all versions"],"fixed":[]},{"ecosystem":"Go","name":"github.com/patrickhener/goshs/v2","purl":"pkg:golang/github.com/patrickhener/goshs/v2","ranges":[">=2.0.0-beta.4 <2.0.0-beta.6"],"fixed":["2.0.0-beta.6"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}