goshs has a file-based ACL authorization bypass in goshs state-changing routes
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-40189
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 17:46 UTC · Revision 1
Source evidence
goshs has a file-based ACL authorization bypass in goshs state-changing routes
core-osv · Original sourcePublished 10 Apr 2026, 19:44 UTC
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.
osv:CVE-2026-40189
Complete source record
{
"id": "3d0cfb5b70f23340b28253a60b6159ec83b43baaaba146bc071eff11d1b96682",
"url": "https://osv.dev/vulnerability/CVE-2026-40189",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "goshs has a file-based ACL authorization bypass in goshs state-changing routes",
"summary": "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.",
"evidence": "osv:CVE-2026-40189",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2026-40189",
"aliases": [
"CVE-2026-40189",
"GHSA-wvhv-qcqf-f3cx",
"GO-2026-5728"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "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"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/goshs-labs/goshs",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "0c316e71c6eb69d75218c4af6e9793cc07cdfaab"
},
{
"fixed": "f212c4f4a126556bab008f79758e21a839ef2c0f"
},
{
"fixed": "10f291dea17fb795f0008ed64c3ad7ab8c0470de"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:goshs:goshs:*:*:*:*:*:go:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "2.0.0"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "f212c4f4a126556bab008f79758e21a839ef2c0f"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "10f291dea17fb795f0008ed64c3ad7ab8c0470de"
}
],
"source": "REFERENCES_TAG",
"original_tag": "v2.0.0-beta.4"
}
]
}
}
],
"versions": [
"v1.1.4",
"v2.0.0-beta.3",
"v2.0.0-beta.2",
"v2.0.0-beta.1",
"1.1.3",
"v1.1.2",
"v1.1.1",
"v1.1.0",
"v1.0.9",
"v1.0.8",
"v1.0.7",
"v1.0.6",
"v1.0.5",
"v1.0.4",
"v1.0.3",
"v1.0.2",
"v1.0.1",
"v1.0.0",
"v0.4.2",
"v0.4.1",
"v0.4.0",
"v0.3.9",
"v0.3.8",
"v0.3.7",
"v0.3.6",
"v0.3.5",
"v0.3.4",
"v0.3.3",
"v0.3.2",
"v0.3.1",
"v0.3.0",
"v0.2.0",
"v0.1.9",
"v0.1.8",
"v0.1.7",
"v0.1.6",
"v0.1.5",
"v0.1.4",
"v0.1.3",
"v0.1.2",
"v0.1.1",
"v0.1.0",
"v0.0.9",
"v0.0.8",
"v0.0.6",
"v0.0.5",
"v0.0.4",
"v0.0.3",
"v0.0.2",
"v0.0.1"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-40189.json"
}
}
],
"modified": "2026-10-28T02:30:31.332235378Z",
"provider": "osv",
"references": [
"https://github.com/patrickhener/goshs/releases/tag/v2.0.0-beta.4",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40189.json",
"https://github.com/patrickhener/goshs/security/advisories/GHSA-wvhv-qcqf-f3cx",
"https://nvd.nist.gov/vuln/detail/CVE-2026-40189",
"https://github.com/patrickhener/goshs/commit/f212c4f4a126556bab008f79758e21a839ef2c0f"
],
"provider_metadata": {
"cwe_ids": [
"CWE-862"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40189.json"
}
},
"related_cves": [
{
"value": "CVE-2026-40189",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 497989,
"published_at": "2026-04-10T19:44:54.672+00:00"
}