CVE-2026-42091: goshs - Cross-Site Request Forgery
- Cve: CVE-2026-42091
- Name: goshs - Cross-Site Request Forgery
- 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.
- Impact: Attackers can write arbitrary files to the server via victim's browser, bypassing network isolation and potentially compromising the system.
- Remediation: Update to version 2.0.2 or later.
- Vulnerability type: cross_site_request_forgery
- Vulnerability impact: file_system_write
- Requirement type: user_interaction
- Requirements: Attacker needs victim to interact via browser
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
- Epss score: 0.00165
- Epss percentile: 0.05632
- Assignee: [email protected]
- Published at: 2026-05-04T18:16:31Z
- Age in days: 204
- Modified at: 2026-10-26T19:10:00Z
- Patch available: yes
- Public exploits total: 1
- References total: 3
- Products total: 1
- Oss: yes
- Projects total: 2
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-42091
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-352 | Cross-Site Request Forgery |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/patrickhener/goshs/security/advisories/GHSA-rhf7-wvw3-vjvm | nvd | 2026-05-04 |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://github.com/patrickhener/goshs/commit/0e715b94e10c3d1aa552276000f15f104dee2f32 | Patch |
| https://github.com/patrickhener/goshs/security/advisories/GHSA-rhf7-wvw3-vjvm | Exploit, Vendor Advisory |
| https://github.com/patrickhener/goshs/releases/tag/v2.0.2 | Product, Release Notes |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| goshs:goshs | < 2.0.2 | no | nvd | /v1/products/goshs/goshs |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| patrickhener/goshs | commit, package, releases, security_advisory | yes | /v1/repositories/patrickhener/goshs |
| goshs-labs/goshs | fix | yes | /v1/repositories/goshs-labs/goshs |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2026-05-04
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts