CVE-2026-42091Goshs
Medium 6.5 No auth needed
Follow: this CVE · Goshs · Goshs We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Goshs.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| goshs | goshs | < 2.0.2 |
Official advisories
- Security update for govulncheck-vulndb · SUSE · openSUSE-SU-2026:21483-1 · Jul 30, 2026 Critical
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Product Release Notes
- github.com Exploit Vendor Advisory