cve.bz

CVE-2026-40885

7.7 highEPSS 0.3%

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.7CVSS: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.8CVSS: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

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-7h3j-592v-jcrpGogithub.com/patrickhener/goshs/v2>=2.0.0-beta.4 <2.0.0-beta.62.0.0-beta.6
GO-2026-5221Gogithub.com/patrickhener/goshsall versionsno fix published
GO-2026-5221Gogithub.com/patrickhener/goshs/v2>=2.0.0-beta.4 <2.0.0-beta.62.0.0-beta.6

References

Check your stackJSON