# CVE-2026-42091: goshs has Cross-Origin Arbitrary File Write via Missing CSRF on PUT and Wildcard CORS

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-23T14:28:14.000Z
- Modified: 2026-10-26T19:10:00.163Z
- Also known as: GHSA-rhf7-wvw3-vjvm, GO-2026-5625
- Weaknesses: CWE-352
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- patrickhener goshs: < 2.0.2
- github.com/patrickhener/goshs/v2 (Go): before 2.0.2
- github.com/patrickhener/goshs (Go): up to 1.1.4; all versions
- goshs.de/goshs (Go): all versions
- goshs.de/goshs/v2 (Go): before 2.0.2
- goshs goshs: before 2.0.2

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`

## References

- <https://github.com/patrickhener/goshs/security/advisories/GHSA-rhf7-wvw3-vjvm> (exploit, advisory, vendor-advisory, web)
- <https://github.com/patrickhener/goshs/commit/0e715b94e10c3d1aa552276000f15f104dee2f32> (fix, patch, web)
- <https://github.com/patrickhener/goshs/releases/tag/v2.0.2> (product, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-42091> (advisory)
- <https://github.com/patrickhener/goshs> (package)

## Sources

- CVE List: [CVE-2026-42091](https://www.cve.org/CVERecord?id=CVE-2026-42091), CVE Terms of Use, modified 2026-05-05
- GitHub Advisory Database: [GHSA-rhf7-wvw3-vjvm](https://github.com/advisories/GHSA-rhf7-wvw3-vjvm), CC-BY-4.0, modified 2026-06-25
- Go Vulnerability Database: [GO-2026-5625](https://pkg.go.dev/vuln/GO-2026-5625), CC-BY-4.0, modified 2026-06-25
- NVD: [CVE-2026-42091](https://nvd.nist.gov/vuln/detail/CVE-2026-42091), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-42091 · Whole record: https://cve.day/CVE-2026-42091.json · Rebuilt by cve.day 2026-11-25T22:59:20.542Z
