CVE-2026-42091: goshs has Cross-Origin Arbitrary File Write via Missing CSRF on PUT and Wildcard CORS
Vulnerability summary
CVE-2026-42091 is a medium (CVSS 6.5) Cross-Site Request Forgery (CSRF) vulnerability in goshs. EPSS estimates a 0.23% chance of exploitation in the next 30 days, higher than 12.5% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 1 · Related 1Timeline
- 04-05-2026PublishedVulnerability first disclosed.
- 05-05-2026Last modifiedVulnerability information updated.
Description
goshs is a SimpleHTTPServer written in Go. Prior to version 2.0.2, the PUT upload handler (httpserver/updown.go) lacks the CSRF token validation that was added to the POST upload handler during the CVE-2026-40883 fix. Combined with the unconditional Access-Control-Allow-Origin: * on the OPTIONS preflight handler (httpserver/server.go), any website can write arbitrary files to a goshs instance through the victim's browser — bypassing network isolation (e.g. localhost, internal network). This issue has been patched in version 2.0.2.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · GoEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
- NVDNIST6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
EPSS trend
Probability
0.23%
Chance of exploitation in the next 30 days
Percentile
13%
Versus all other CVEs
30-day change
Increase +0.06 pp
From 0.17% on 22-09-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundGoshs
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Github.com/patrickhener1 product
- goshs≤ 1.1.4 | All versions (No fix recorded)
Github.com/patrickhener/goshs1 product
- v2< 2.0.2
Goshs1 product
- goshs< 2.0.2
Goshs.de1 product
- goshsAll versions (No fix recorded)
Goshs.de/goshs1 product
- v2< 2.0.2
Patrickhener1 product
- goshs< 2.0.2
6 vendors · 6 products
References
5 links- github.com/patrickhener/goshs/security/advisories/GHSA-rhf7-wvw3-vjvmX Refsource CONFIRMWEBAdvisoryExploitVendor Advisory
- github.com/patrickhener/goshs/commit/0e715b94e10c3d1aa552276000f15f104dee2f32X Refsource MISCWEBFIXPatch