Security mailing lists by PureSourceCode

CVE-2026-42091

MEDIUM 6.5CVSS 3.1

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

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.

Published
4 May 2026
Last modified
26 Oct 2026
Assigned by
security-advisories@github.com
NVD status
Analyzed
Weakness
CWE-352
Also known as
GHSA-rhf7-wvw3-vjvmGO-2026-5625
Sources
NVDJSONOSV GHSA-rhf7-wvw3-vjvmJSONOSV GO-2026-5625JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
OSV GitHub CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD goshs goshs
cpe:2.3:a:goshs:goshs:*:*:*:*:*:go:*:*
< 2.0.2 2.0.2
OSV Go github.com/patrickhener/goshs/v2 < 2.0.2 2.0.2
OSV Go github.com/patrickhener/goshs <= 1.1.4
OSV Go github.com/patrickhener/goshs all versions
OSV Go goshs.de/goshs all versions
OSV Go goshs.de/goshs/v2 < 2.0.2 2.0.2

References

History

  • 25 Nov 2026 21:02 UTC · NVD: first stored (published 4 May 2026)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Jun 2026)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 23 Apr 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.