CVE-2026-40885 Details
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.
A vulnerability in goshs versions 2.0.0-beta.4 prior to 2.0.0-beta.5 allows for the leakage of file-based Access Control List (ACL) credentials through the public collaborator feed. This issue arises when the server is deployed without global basic authentication. Requests to .goshs-protected folders are logged before authorization is applied, and the collaborator websocket broadcasts raw request headers, including the Authorization header. An unauthenticated observer can intercept a victim's folder-specific basic-auth header and use it to access, modify, or delete files within the protected subtree. This vulnerability has been addressed in goshs version 2.0.0-beta.6.
To address this vulnerability, it is recommended to avoid storing or broadcasting sensitive headers such as Authorization in collaborator events. Additionally, collaborator logging should be delayed until after access-control checks are completed, and only minimal metadata should be logged instead of raw headers and bodies. Finally, the collaborator websocket and panel should be protected with the same or stronger authentication as the resources being observed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 21, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/patrickhener/goshs/security/advisories/GHSA-7h3j-592v-jcrp | CISA-ADP | ExploitVendor Advisory |
| https://github.com/patrickhener/goshs/security/advisories/GHSA-7h3j-592v-jcrp | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| NVD-CWE-noinfo | Insufficient Information to Classify Weakness | [email protected] |
| CWE-200 | Exposure of Sensitive Information to an Unauthorized Actor | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| goshs goshs | 2.0.0 beta4 2.0.0 beta5 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 26, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 27, 2026 | Initial Analysis | [email protected] |
| Apr 21, 2026 | CVE Modified | CISA-ADP |
| Apr 21, 2026 | New CVE Received | [email protected] |