Skip to content
OpenAdvisories
Medium · 6.1 CVE-2026-40883 EUVD-2026-24270GHSA-jrq5-hg6x-j6g3GO-2026-5479

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

Published Apr 21, 2026 · Updated Apr 21, 2026 · Assigned by GitHub_M

Description

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.

Affected products

VendorProductAffectedFixed
patrickhener goshs >= 2.0.0-beta.4, < 2.0.0-beta.6 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260723T184607-160000.1.1 openSUSE-SU-2026:21483-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/patrickhener/goshs all versions — GO-2026-5479
Go github.com/patrickhener/goshs/v2 >= 2.0.0-beta.4, < 2.0.0-beta.6 2.0.0-beta.6 GHSA-jrq5-hg6x-j6g3

Advisories 1

References