CVE-2026-40189: Vulnerability in Goshs
Critical. 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...
Go, CWE-862
- Exploitation
- None confirmed
- Severity
- 9.8 of 10
- Attack likelihood
- 0.7 % in 30 days
- Fix
- None recorded
- Patch deadline
- No deadline set
Details
- Advisory ID
- GHSA-wvhv-qcqf-f3cx
- EU ID
- EUVD-2026-21591
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weakness
- CWE-862
- Published
- 10 Apr 2026
- Last change
- 26 Oct 2026
- Likelihood rank
- Higher than 54 % of all rated vulnerabilities
- Analysis status
- Analyzed
- Ecosystem
- Go
Affected products
Affected versions and the first fixed release
- Goshs Before 2.0.0; Version 2.0.0. No fixed version recorded
Affected packages
Vulnerable version ranges and fixed releases
- github.com/patrickhener/goshs Go, Affected through 1.1.4. No fixed version recorded
Patches and fixes
Updates, commits and release notes
- github.com/patrickhener/goshs/commit/f212c4f4a126556bab008f79758e21a839ef2c0f
- github.com/patrickhener/goshs/releases/tag/v2.0.0-beta.4
Exploit code
Public exploits and proofs of concept, handle with care
Related
- Goshs vulnerabilities Recent advisories, watch this product