Live threats

All CVEs / Goshs

CVE-2026-42091Goshs

Medium 6.5 No auth needed

Priority
54
CVSS 3.1
6.5
EPSS
—
Auth required
No
Published
May 4, 2026
Updated
Oct 26, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-352
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Goshs.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/patrickhener/goshs ≤ 1.1.4 no fixed version —
Go github.com/patrickhener/goshs all no fixed version —
Go github.com/patrickhener/goshs/v2 < 2.0.2 2.0.2 go get github.com/patrickhener/goshs/v2@v2.0.2
Go goshs.de/goshs all no fixed version —
Go goshs.de/goshs/v2 < 2.0.2 2.0.2 go get goshs.de/goshs/v2@v2.0.2

Per OSV / GitHub Advisories (GHSA-rhf7-wvw3-vjvm, GO-2026-5625). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
goshsgoshs< 2.0.2

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.