{"cve":"CVE-2026-42091","nvd":{"published":"2026-05-04T18:16:31.210","modified":"2026-10-26T19:10:00.163","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","score":6.5},"cwes":["CWE-352"],"references":["https://github.com/patrickhener/goshs/commit/0e715b94e10c3d1aa552276000f15f104dee2f32","https://github.com/patrickhener/goshs/releases/tag/v2.0.2","https://github.com/patrickhener/goshs/security/advisories/GHSA-rhf7-wvw3-vjvm","https://github.com/patrickhener/goshs/security/advisories/GHSA-rhf7-wvw3-vjvm"],"products":["goshs:goshs"],"source":"nvd","synced_at":"2026-10-26T19:31:02.781428341+00:00"},"epss":{"cve":"CVE-2026-42091","score":0.00165,"percentile":0.05656,"date":"2026-10-26"},"kev":null,"osv":[{"id":"GHSA-rhf7-wvw3-vjvm","url":"https://osv.dev/vulnerability/GHSA-rhf7-wvw3-vjvm","summary":"goshs has Cross-Origin Arbitrary File Write via Missing CSRF on PUT and Wildcard CORS","modified":"2026-06-25T23:11:45.118940020Z","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"]},{"ecosystem":"Go","name":"github.com/patrickhener/goshs","purl":"pkg:golang/github.com/patrickhener/goshs","ranges":["<=1.1.4"],"fixed":[]}]},{"id":"GO-2026-5625","url":"https://osv.dev/vulnerability/GO-2026-5625","summary":"goshs has Cross-Origin Arbitrary File Write via Missing CSRF on PUT and Wildcard CORS in github.com/patrickhener/goshs","modified":"2026-06-25T23:01:36.496969749Z","packages":[{"ecosystem":"Go","name":"github.com/patrickhener/goshs","purl":"pkg:golang/github.com/patrickhener/goshs","ranges":["all versions"],"fixed":[]},{"ecosystem":"Go","name":"goshs.de/goshs","purl":"pkg:golang/goshs.de/goshs","ranges":["all versions"],"fixed":[]},{"ecosystem":"Go","name":"goshs.de/goshs/v2","purl":"pkg:golang/goshs.de/goshs/v2","ranges":["<2.0.2"],"fixed":["2.0.2"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}