Skip to main content
← All vulnerabilities
CVE-2026-42091GO-2026-5625GHSA-RHF7-WVW3-VJVM

goshs has Cross-Origin Arbitrary File Write via Missing CSRF on PUT and Wildcard CORS

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.0.2
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • patrickhener goshs

    fixed in 2.0.2

  • github.com/patrickhener/goshsGo

    All versions

  • goshs.de/goshsGo

    All versions

  • goshs.de/goshs/v2Go

    fixed in 2.0.2

  • github.com/patrickhener/goshs/v2Go

    fixed in 2.0.2

  • github.com/patrickhener/goshsGo

    through 1.1.4

References 3

GitHub · patrickhener/goshs