Skip to content
OpenAdvisories
High · 7.7 CVE-2026-40885 EUVD-2026-24273GHSA-7h3j-592v-jcrpGO-2026-5221

goshs: Public collaborator feed leaks .goshs ACL credentials and enables unauthorized access

Published Apr 21, 2026 · Updated Apr 21, 2026 · 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.

Affected products

VendorProductAffectedFixed
patrickhener goshs >= 2.0.0-beta.4, < 2.0.0-beta.6 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260723T184607-160000.1.1 openSUSE-SU-2026:21483-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/patrickhener/goshs all versions — GO-2026-5221
Go github.com/patrickhener/goshs/v2 >= 2.0.0-beta.4, < 2.0.0-beta.6 2.0.0-beta.6 GHSA-7h3j-592v-jcrp

Advisories 1

References