CVE-2026-40189
CRITICAL 9.3CVSS 4.0goshs has a file-based ACL authorization bypass in goshs state-changing routes
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.
- Published
- 10 Apr 2026
- Last modified
- 26 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-862
- Also known as
- GHSA-wvhv-qcqf-f3cxGO-2026-5728
- Sources
- NVDJSONOSV GHSA-wvhv-qcqf-f3cxJSONOSV GO-2026-5728JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | CRITICAL 9.3 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/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 |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | goshs | goshscpe:2.3:a:goshs:goshs:*:*:*:*:*:go:*:* |
< 2.0.0 | 2.0.0 |
| NVD | goshs | goshscpe:2.3:a:goshs:goshs:2.0.0:beta1:*:*:*:go:*:* |
= 2.0.0 | |
| NVD | goshs | goshscpe:2.3:a:goshs:goshs:2.0.0:beta2:*:*:*:go:*:* |
= 2.0.0 | |
| NVD | goshs | goshscpe:2.3:a:goshs:goshs:2.0.0:beta3:*:*:*:go:*:* |
= 2.0.0 | |
| OSV | Go | github.com/patrickhener/goshs | <= 1.1.4 | |
| OSV | Go | github.com/patrickhener/goshs | all versions |
References
- https://github.com/patrickhener/goshs/commit/f212c4f4a126556bab008f79758e21a839ef2c0f · Patch, WEB, FIX
- https://github.com/patrickhener/goshs/releases/tag/v2.0.0-beta.4 · Product, Release Notes, WEB
- https://github.com/patrickhener/goshs/security/advisories/GHSA-wvhv-qcqf-f3cx · Exploit, Mitigation, Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-40189 · ADVISORY
- https://github.com/patrickhener/goshs · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 10 Apr 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Jun 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 10 Apr 2026)