CVE-2026-40883
goshs is a SimpleHTTPServer written in Go. From 2.0.0-beta.4 to 2.0.0-beta.5, goshs contains a cross-site request forgery issue in its state-changing HTTP GET routes. An external attacker can cause an already authenticated browser to trigger destructive actions such as ?delete and ?mkdir because goshs relies on HTTP basic auth alone and performs no CSRF, Origin, or Referer validation for those routes. This vulnerability is fixed in 2.0.0-beta.6.
- CVSS 4.0
- 6.1
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N - CVSS 3.1
- 8.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H - EPSS
- 0.1% chance of exploitation in the next 30 days; higher than 3% of CVEs (scores of 2026-10-25)
- CWE
- CWE-352
- Published
- Modified
- Record from
- the NVD, synced
Affected
- goshs:goshs
Packages (OSV)
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-jrq5-hg6x-j6g3 | Go | github.com/patrickhener/goshs/v2 | >=2.0.0-beta.4 <2.0.0-beta.6 | 2.0.0-beta.6 |
| GO-2026-5479 | Go | github.com/patrickhener/goshs | all versions | no fix published |
| GO-2026-5479 | Go | github.com/patrickhener/goshs/v2 | >=2.0.0-beta.4 <2.0.0-beta.6 | 2.0.0-beta.6 |