{
  "id": "CVE-2026-40189",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-40189",
  "published_at": "2026-04-10T19:44:54.672Z",
  "title": "goshs has a file-based ACL authorization bypass in goshs state-changing routes",
  "vendor": "patrickhener",
  "product": "goshs",
  "cvss": {
    "score": 9.8,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "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.",
  "cwe": "CWE-862",
  "cpes": [
    "cpe:2.3:a:goshs:goshs:*:*:*:*:*:go:*:*",
    "cpe:2.3:a:goshs:goshs:2.0.0:beta1:*:*:*:go:*:*",
    "cpe:2.3:a:goshs:goshs:2.0.0:beta2:*:*:*:go:*:*",
    "cpe:2.3:a:goshs:goshs:2.0.0:beta3:*:*:*:go:*:*"
  ],
  "cvss_by_source": {
    "cna": 9.3,
    "nvd": 9.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "patrickhener",
        "product": "goshs",
        "ranges": [
          "\u003c 2.0.0-beta.4"
        ],
        "fixed_in": [
          "2.0.0-beta.4"
        ]
      }
    ],
    "upgrade": [
      "Upgrade goshs to 2.0.0-beta.4 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/patrickhener/goshs/security/advisories/GHSA-wvhv-qcqf-f3cx"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/patrickhener/goshs/commit/f212c4f4a126556bab008f79758e21a839ef2c0f"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/patrickhener/goshs/releases/tag/v2.0.0-beta.4"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
