{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-40189","published":"2026-04-10T20:16:23.890000Z","last_modified":"2026-10-26T22:10:00.163000Z","status":"Analyzed","cvss":{"version":"4.0","score":9.3,"severity":"CRITICAL","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","source":"security-advisories@github.com","primary":false},"auth":false,"cwes":["CWE-862"],"cpes":[{"criteria":"cpe:2.3:a:goshs:goshs:*:*:*:*:*:go:*:*","part":"a","vendor":"goshs","product":"goshs","version_end_excluding":"2.0.0"},{"criteria":"cpe:2.3:a:goshs:goshs:2.0.0:beta1:*:*:*:go:*:*","part":"a","vendor":"goshs","product":"goshs","version":"2.0.0"},{"criteria":"cpe:2.3:a:goshs:goshs:2.0.0:beta2:*:*:*:go:*:*","part":"a","vendor":"goshs","product":"goshs","version":"2.0.0"},{"criteria":"cpe:2.3:a:goshs:goshs:2.0.0:beta3:*:*:*:go:*:*","part":"a","vendor":"goshs","product":"goshs","version":"2.0.0"}],"cpes_truncated":false,"vendors":["goshs"],"products":["goshs/goshs"],"ssvc":{"exploitation":"poc","automatable":"yes","technical_impact":"total"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-wvhv-qcqf-f3cx","ecosystem":"Go","name":"github.com/patrickhener/goshs","purl":"pkg:golang/github.com/patrickhener/goshs","ranges":[{"introduced":"0","last_affected":"1.1.4"}],"versions":[],"versions_truncated":false},{"advisory":"GO-2026-5728","ecosystem":"Go","name":"github.com/patrickhener/goshs","purl":"pkg:golang/github.com/patrickhener/goshs","ranges":[{"introduced":"0"}],"versions":[],"versions_truncated":false}],"severity":"critical","priority_score":71,"links":{"html_es":"/es/cve/CVE-2026-40189/","html_en":"/en/cve/CVE-2026-40189/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-40189","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-40189"},"untrusted":{"vendor_name":"Goshs","product_name":"Goshs","desc_en":"goshs is a SimpleHTTPServer written in Go. Prior to 2.0.0-beta.4, goshs enforces the documented per-folder .goshs ACL/basic-auth mechanism for directory listings and file reads, but it does not enforce the same authorization checks for state-changing routes. An unauthenticated attacker can upload files with PUT, upload files with multipart POST /upload, create directories with ?mkdir, and delete files with ?delete inside a .goshs-protected directory. By deleting the .goshs file itself, the attacker can remove the folder's auth policy and then access previously protected content without credentials. This results in a critical authorization bypass affecting confidentiality, integrity, and availability. This vulnerability is fixed in 2.0.0-beta.4.","affected":[{"untrusted_vendor":"patrickhener","untrusted_product":"goshs","versions":[]}],"references":[{"url":"https://github.com/patrickhener/goshs/commit/f212c4f4a126556bab008f79758e21a839ef2c0f","tags":["Patch"]},{"url":"https://github.com/patrickhener/goshs/releases/tag/v2.0.0-beta.4","tags":["Product","Release Notes"]},{"url":"https://github.com/patrickhener/goshs/security/advisories/GHSA-wvhv-qcqf-f3cx","tags":["Exploit","Mitigation","Vendor Advisory"]}]},"bulletins":[{"source":"suse","id":"openSUSE-SU-2026:21483-1","url":"https://www.suse.com/support/update/","published":"2026-07-30T09:09:47+00:00","severity":"critical","exploited":false,"untrusted":{"title":"Security update for govulncheck-vulndb"}},{"source":"suse","id":"openSUSE-SU-2026:10542-1","url":"https://www.suse.com/support/update/","published":"2026-04-14T00:00:00+00:00","severity":"critical","exploited":false,"untrusted":{"title":"goshs-2.0.0-1.1 on GA media"}}]}