CVE-2026-42091
published medium CVSS 3.1 · 6.5goshs has Cross-Origin Arbitrary File Write via Missing CSRF on PUT and Wildcard CORS
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| patrickhener | — | goshs< 2.0.2 | Affected | Not stated | GitHub_M |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.5 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| patrickhener | goshs | < 2.0.2 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-352 CWE-352: Cross-Site Request Forgery (CSRF)
References
3Provider assertions
2GitHub_M · cna
goshs has Cross-Origin Arbitrary File Write via Missing CSRF on PUT and Wildcard CORS
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- f55a02d58788540d551037f972ae5576ed01961622bb9159da8cf15cc5a08773
- Ingested
- 23 Sep 2026, 09:14:00 UTC
- Source record
- Official CVE record