Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/patrickhener/goshs/v2
  4. ›
  5. CVE-2026-40885

CVE-2026-40885: goshs's public collaborator feed leaks .goshs ACL credentials and enables unauthorized access

April 14, 2026 (updated April 27, 2026)

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. I reproduced this on v2.0.0-beta.5, the latest supported release as of April 10, 2026.

References

  • github.com/advisories/GHSA-7h3j-592v-jcrp
  • github.com/patrickhener/goshs
  • github.com/patrickhener/goshs/security/advisories/GHSA-7h3j-592v-jcrp
  • nvd.nist.gov/vuln/detail/CVE-2026-40885

Code Behaviors & Features

Detect and mitigate CVE-2026-40885 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.0.0-beta.4 before 2.0.0-beta.6

Fixed versions

  • 2.0.0-beta.6

Solution

Upgrade to version 2.0.0-beta.6 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor

Source file

go/github.com/patrickhener/goshs/v2/CVE-2026-40885.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:18:53 +0000.