CVE-2026-42091

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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:goshs:goshs:*:*:*:*:*:go:*:*

History

12 May 2026, 18:34

Type Values Removed Values Added
CPE cpe:2.3:a:goshs:goshs:*:*:*:*:*:go:*:*
References () https://github.com/patrickhener/goshs/commit/0e715b94e10c3d1aa552276000f15f104dee2f32 - () https://github.com/patrickhener/goshs/commit/0e715b94e10c3d1aa552276000f15f104dee2f32 - Patch
References () https://github.com/patrickhener/goshs/releases/tag/v2.0.2 - () https://github.com/patrickhener/goshs/releases/tag/v2.0.2 - Product, Release Notes
References () https://github.com/patrickhener/goshs/security/advisories/GHSA-rhf7-wvw3-vjvm - () https://github.com/patrickhener/goshs/security/advisories/GHSA-rhf7-wvw3-vjvm - Exploit, Vendor Advisory
First Time Goshs
Goshs goshs

05 May 2026, 16:16

Type Values Removed Values Added
References () https://github.com/patrickhener/goshs/security/advisories/GHSA-rhf7-wvw3-vjvm - () https://github.com/patrickhener/goshs/security/advisories/GHSA-rhf7-wvw3-vjvm -

04 May 2026, 18:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-05-04 18:16

Updated : 2026-05-12 18:34


NVD link : CVE-2026-42091

Mitre link : CVE-2026-42091

CVE.ORG link : CVE-2026-42091


JSON object : View

Products Affected

goshs

  • goshs
CWE
CWE-352

Cross-Site Request Forgery (CSRF)