CVE-2026-40885
published 2026-04-21CVE-2026-40885: 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…
PriorityP354high8.8CVSS 3.1
AVNACLPRNUIRSUCHIHAH
EPSS
0.31%
22.8th percentile
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.
Affected
3 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| github.com | patrickhener_goshs_v2 | >= 2.0.0-beta.4 < 2.0.0-beta.6 | 2.0.0-beta.6 |
| goshs | goshs | — | — |
| patrickhener | goshs | — | — |
CVSS provenance
nvdv3.18.8HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
nvdv4.07.7HIGHCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
VulDB
patrickhener goshs 2.0.0-beta.4/2.0.0-beta.5 Request Header information disclosure (GHSA-7h3j-592v-jcrp)
vuldb·2026-04-21·CVSS 7.7
CVE-2026-40885 [HIGH] patrickhener goshs 2.0.0-beta.4/2.0.0-beta.5 Request Header information disclosure (GHSA-7h3j-592v-jcrp)
A vulnerability, which was classified as problematic, was found in patrickhener goshs 2.0.0-beta.4/2.0.0-beta.5. This vulnerability affects unknown code of the component Request Header Handler. Executing a manipulation can lead to information disclosure.
This vulnerability is registered as CVE-2026-40885. It is possible to launch the attack remotely. No exploit is available.
You should upgrade the affected component.
GHSA
goshs's public collaborator feed leaks .goshs ACL credentials and enables unauthorized access
ghsa·2026-04-14
CVE-2026-40885 [HIGH] CWE-200 goshs's public collaborator feed leaks .goshs ACL credentials and enables unauthorized access
goshs's public collaborator feed leaks .goshs ACL credentials and enables unauthorized access
### Summary
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.
### Details
The main web UI and collaborator websocket stay public when goshs is started without global `-b user:pass` authe
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
2026-04-21
Published