{"cve":"CVE-2026-40883","nvd":{"published":"2026-04-21T20:17:01.983","modified":"2026-10-26T00:10:00.150","status":"Analyzed","description":"goshs is a SimpleHTTPServer written in Go. From 2.0.0-beta.4 to 2.0.0-beta.5, goshs contains a cross-site request forgery issue in its state-changing HTTP GET routes. An external attacker can cause an already authenticated browser to trigger destructive actions such as ?delete and ?mkdir because goshs relies on HTTP basic auth alone and performs no CSRF, Origin, or Referer validation for those routes. This vulnerability is fixed in 2.0.0-beta.6.","cvss_v4":{"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N","score":6.1},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H","score":8.1},"cwes":["CWE-352"],"references":["https://github.com/patrickhener/goshs/security/advisories/GHSA-jrq5-hg6x-j6g3","https://github.com/patrickhener/goshs/security/advisories/GHSA-jrq5-hg6x-j6g3"],"products":["goshs:goshs"],"source":"nvd","synced_at":"2026-10-26T00:31:35.753532240+00:00"},"epss":{"cve":"CVE-2026-40883","score":0.00143,"percentile":0.03584,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-jrq5-hg6x-j6g3","url":"https://osv.dev/vulnerability/GHSA-jrq5-hg6x-j6g3","summary":"goshs has CSRF in state-changing GET routes enables authenticated file deletion and directory creation","modified":"2026-06-25T23:11:34.393985254Z","packages":[{"ecosystem":"Go","name":"github.com/patrickhener/goshs/v2","purl":"pkg:golang/github.com/patrickhener/goshs/v2","ranges":[">=2.0.0-beta.4 <2.0.0-beta.6"],"fixed":["2.0.0-beta.6"]}]},{"id":"GO-2026-5479","url":"https://osv.dev/vulnerability/GO-2026-5479","summary":"goshs has CSRF in state-changing GET routes enables authenticated file deletion and directory creation in github.com/patrickhener/goshs","modified":"2026-06-25T23:01:15.617789435Z","packages":[{"ecosystem":"Go","name":"github.com/patrickhener/goshs","purl":"pkg:golang/github.com/patrickhener/goshs","ranges":["all versions"],"fixed":[]},{"ecosystem":"Go","name":"github.com/patrickhener/goshs/v2","purl":"pkg:golang/github.com/patrickhener/goshs/v2","ranges":[">=2.0.0-beta.4 <2.0.0-beta.6"],"fixed":["2.0.0-beta.6"]}]}],"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."]}