CVE-2026-40189

goshs is a SimpleHTTPServer written in Go. Prior to 2.0.0-beta.4, goshs enforces the documented per-folder .goshs ACL/basic-auth mechanism for directory listings and file reads, but it does not enforce the same authorization checks for state-changing routes. An unauthenticated attacker can upload files with PUT, upload files with multipart POST /upload, create directories with ?mkdir, and delete files with ?delete inside a .goshs-protected directory. By deleting the .goshs file itself, the attacker can remove the folder's auth policy and then access previously protected content without credentials. This results in a critical authorization bypass affecting confidentiality, integrity, and availability. This vulnerability is fixed in 2.0.0-beta.4.
Configurations

Configuration 1 (hide)

OR cpe:2.3:a:goshs:goshs:*:*:*:*:*:go:*:*
cpe:2.3:a:goshs:goshs:2.0.0:beta1:*:*:*:go:*:*
cpe:2.3:a:goshs:goshs:2.0.0:beta2:*:*:*:go:*:*
cpe:2.3:a:goshs:goshs:2.0.0:beta3:*:*:*:go:*:*

History

14 Apr 2026, 20:08

Type Values Removed Values Added
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 9.8
References () https://github.com/patrickhener/goshs/commit/f212c4f4a126556bab008f79758e21a839ef2c0f - () https://github.com/patrickhener/goshs/commit/f212c4f4a126556bab008f79758e21a839ef2c0f - Patch
References () https://github.com/patrickhener/goshs/releases/tag/v2.0.0-beta.4 - () https://github.com/patrickhener/goshs/releases/tag/v2.0.0-beta.4 - Product, Release Notes
References () https://github.com/patrickhener/goshs/security/advisories/GHSA-wvhv-qcqf-f3cx - () https://github.com/patrickhener/goshs/security/advisories/GHSA-wvhv-qcqf-f3cx - Exploit, Mitigation, Vendor Advisory
First Time Goshs goshs
Goshs
CPE cpe:2.3:a:goshs:goshs:*:*:*:*:*:go:*:*
cpe:2.3:a:goshs:goshs:2.0.0:beta3:*:*:*:go:*:*
cpe:2.3:a:goshs:goshs:2.0.0:beta2:*:*:*:go:*:*
cpe:2.3:a:goshs:goshs:2.0.0:beta1:*:*:*:go:*:*

13 Apr 2026, 21:16

Type Values Removed Values Added
References () https://github.com/patrickhener/goshs/security/advisories/GHSA-wvhv-qcqf-f3cx - () https://github.com/patrickhener/goshs/security/advisories/GHSA-wvhv-qcqf-f3cx -

10 Apr 2026, 20:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-04-10 20:16

Updated : 2026-04-14 20:08


NVD link : CVE-2026-40189

Mitre link : CVE-2026-40189

CVE.ORG link : CVE-2026-40189


JSON object : View

Products Affected

goshs

  • goshs
CWE
CWE-862

Missing Authorization