CVE-2026-42091

MEDIUM CVSS 3.1: 6.5 EPSS 0.17%
Updated Oct 26, 2026
Goshs
Parameter Value
CVSS 6.5 (MEDIUM)
Affected Versions before 2.0.2
Fixed In 2.0.2
Type CWE-352 (Cross-Site Request Forgery (CSRF))
Vendor Goshs
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Privileges Required
None
No privileges needed
User Interaction
Required
User action required

Impact Assessment

Confidentiality
None
No data leak
Integrity
High
Complete data modification
Availability
None
No disruption

CVSS Vector v3.1

Vulnerable Products 1

Configuration From (including) Up to (excluding)
Goshs Goshs
cpe:2.3:a:goshs:goshs:*:*:*:*:*:go:*:*
— 2.0.2