{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "2.0.0-beta.4"
              },
              {
                "fixed": "2.0.0-beta.6"
              }
            ],
            "source": "AFFECTED_FIELD"
          },
          "events": [
            {
              "introduced": "10f291dea17fb795f0008ed64c3ad7ab8c0470de"
            },
            {
              "fixed": "2f6b5d601d494601fa43fad9a712ee6117b7dbcd"
            }
          ],
          "repo": "https://github.com/goshs-labs/goshs",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-7h3j-592v-jcrp"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-200"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40885.json"
  },
  "details": "goshs is a SimpleHTTPServer written in Go. From 2.0.0-beta.4 to 2.0.0-beta.5, goshs leaks file-based ACL credentials through its public collaborator feed when the server is deployed without global basic auth. Requests to .goshs-protected folders are logged before authorization is enforced, and the collaborator websocket broadcasts raw request headers, including Authorization. An unauthenticated observer can capture a victim's folder-specific basic-auth header and replay it to read, upload, overwrite, and delete files inside the protected subtree. This vulnerability is fixed in 2.0.0-beta.6.",
  "id": "CVE-2026-40885",
  "modified": "2026-07-08T05:39:04.216732272Z",
  "published": "2026-04-21T19:40:37.272Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40885.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/patrickhener/goshs/security/advisories/GHSA-7h3j-592v-jcrp"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-40885"
    }
  ],
  "schema_version": "1.7.5",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "goshs: Public collaborator feed leaks .goshs ACL credentials and enables unauthorized access"
}