Skip to main content
← All vulnerabilities
CVE-2026-40883GO-2026-5479GHSA-JRQ5-HG6X-J6G3

goshs: CSRF in state-changing GET routes enables authenticated file deletion and directory creation

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

Summary

goshs is a SimpleHTTPServer written in Go. From 2.0.0-beta.4 to 2.0.0-beta.5, goshs contains a cross-site request forgery issue in its state-changing HTTP GET routes. An external attacker can cause an already authenticated browser to trigger destructive actions such as ?delete and ?mkdir because goshs relies on HTTP basic auth alone and performs no CSRF, Origin, or Referer validation for those routes. This vulnerability is fixed in 2.0.0-beta.6.

Timeline

  1. CVE published
  2. CISA SSVC assessment

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

  3. Record last updated

Affected versions

  • patrickhener goshs

    From 2.0.0-beta.4 · fixed in 2.0.0-beta.6

  • github.com/patrickhener/goshsGo

    All versions

  • github.com/patrickhener/goshs/v2Go

    From 2.0.0-beta.4 · fixed in 2.0.0-beta.6

References 1

GitHub · patrickhener/goshs