{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-42091","id":"CVE-2026-42091","title":"goshs has Cross-Origin Arbitrary File Write via Missing CSRF on PUT and Wildcard CORS","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 thro","descriptionLong":"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.","published":"2026-05-04T17:24:47.890Z","updated":"2026-10-28T02:30:47.577920206Z","reserved":"2026-04-23T19:17:30.566Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","rating":"medium","source":"github.com"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["patrickhener goshs"],"affectedProducts":[{"vendor":"patrickhener","product":"goshs","defaultStatus":null,"versions":[{"version":"< 2.0.2","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"github.com/patrickhener/goshs/v2","purl":"pkg:golang/github.com/patrickhener/goshs/v2","ranges":["<2.0.2"],"fixed":["2.0.2"],"advisory":"GHSA-rhf7-wvw3-vjvm"},{"ecosystem":"Go","name":"github.com/patrickhener/goshs","purl":"pkg:golang/github.com/patrickhener/goshs","ranges":["<=1.1.4","all versions"],"fixed":[],"advisory":"GHSA-rhf7-wvw3-vjvm"},{"ecosystem":"Go","name":"goshs.de/goshs","purl":"pkg:golang/goshs.de/goshs","ranges":["all versions"],"fixed":[],"advisory":"GO-2026-5625"},{"ecosystem":"Go","name":"goshs.de/goshs/v2","purl":"pkg:golang/goshs.de/goshs/v2","ranges":["<2.0.2"],"fixed":["2.0.2"],"advisory":"GO-2026-5625"}],"cwes":["CWE-352"],"aliases":["GHSA-rhf7-wvw3-vjvm","GO-2026-5625"],"references":[{"url":"https://github.com/patrickhener/goshs/security/advisories/GHSA-rhf7-wvw3-vjvm","tags":["x_refsource_CONFIRM","exploit","Exploit","Vendor Advisory","advisory","web"]},{"url":"https://github.com/patrickhener/goshs/commit/0e715b94e10c3d1aa552276000f15f104dee2f32","tags":["x_refsource_MISC","Patch","fix","web"]},{"url":"https://github.com/patrickhener/goshs/releases/tag/v2.0.2","tags":["x_refsource_MISC","Product","Release Notes","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42091.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42091","tags":["advisory"]},{"url":"https://github.com/patrickhener/goshs","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00165,"epssPercentile":0.05791,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-42091","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42091","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-42091","ok":true,"note":"4 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-rhf7-wvw3-vjvm","ok":true,"note":"GHSA-rhf7-wvw3-vjvm"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-42091","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}