# CVE-2026-40885: goshs: Public collaborator feed leaks .goshs ACL credentials and enables unauthorized access

- Severity: High 7.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 27% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-14T22:28:54.000Z
- Modified: 2026-10-26T21:10:00.170Z
- Also known as: GHSA-7h3j-592v-jcrp, GO-2026-5221
- Weaknesses: CWE-200
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- patrickhener goshs: >= 2.0.0-beta.4, < 2.0.0-beta.6
- github.com/patrickhener/goshs/v2 (Go): from 2.0.0-beta.4 before 2.0.0-beta.6
- github.com/patrickhener/goshs (Go): all versions
- goshs goshs: 2.0.0

## Every score

- GitHub_M: CVSS:4.0 7.7 High `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`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/patrickhener/goshs/security/advisories/GHSA-7h3j-592v-jcrp> (exploit, advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40885> (advisory)
- <https://github.com/patrickhener/goshs> (package)

## Sources

- CVE List: [CVE-2026-40885](https://www.cve.org/CVERecord?id=CVE-2026-40885), CVE Terms of Use, modified 2026-04-21
- GitHub Advisory Database: [GHSA-7h3j-592v-jcrp](https://github.com/advisories/GHSA-7h3j-592v-jcrp), CC-BY-4.0, modified 2026-06-25
- Go Vulnerability Database: [GO-2026-5221](https://pkg.go.dev/vuln/GO-2026-5221), CC-BY-4.0, modified 2026-06-25
- NVD: [CVE-2026-40885](https://nvd.nist.gov/vuln/detail/CVE-2026-40885), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-40885 · Whole record: https://cve.day/CVE-2026-40885.json · Rebuilt by cve.day 2026-11-25T22:59:19.141Z
