CVE-2026-42091 Details
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.
A Cross-Site Request Forgery (CSRF) vulnerability has been identified in the goshs SimpleHTTPServer application written in Go, affecting versions through 2.0.1. The issue arises in the PUT upload handler, which lacks the CSRF token validation present in the POST upload handler. This vulnerability is compounded by a permissive Cross-Origin Resource Sharing (CORS) policy that allows any website to send PUT requests to the goshs server. As a result, arbitrary files can be written to the goshs instance from the victim's browser, bypassing network isolation.
Users can upgrade to goshs version 2.0.2, which addresses this vulnerability by adding CSRF token validation to the PUT upload handler and removing the wildcard CORS policy.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 5, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/patrickhener/goshs/security/advisories/GHSA-rhf7-wvw3-vjvm | CISA-ADP | ExploitVendor Advisory |
| https://github.com/patrickhener/goshs/commit/0e715b94e10c3d1aa552276000f15f104dee2f32 | [email protected] | Patch |
| https://github.com/patrickhener/goshs/releases/tag/v2.0.2 | [email protected] | ProductRelease Notes |
| https://github.com/patrickhener/goshs/security/advisories/GHSA-rhf7-wvw3-vjvm | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-352 | Cross-Site Request Forgery (CSRF) | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| goshs goshs | < 2.0.2 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 12, 2026 | Initial Analysis | [email protected] |
| May 5, 2026 | CVE Modified | CISA-ADP |
| May 4, 2026 | New CVE Received | [email protected] |