{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "fc8ff272409ac68d85835b1d43c011fc986de08a"
            }
          ],
          "repo": "https://github.com/forceu/gokapi",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-q658-hfpg-35qc"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-284"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/29xxx/CVE-2026-29061.json"
  },
  "details": "Gokapi is a self-hosted file sharing server with automatic expiration and encryption support. Prior to version 2.2.3, a privilege escalation vulnerability in the user rank demotion logic allows a demoted user's existing API keys to retain ApiPermManageFileRequests and ApiPermManageLogs permissions, enabling continued access to upload-request management and log viewing endpoints after the user has been stripped of all privileges. This issue has been patched in version 2.2.3.",
  "id": "CVE-2026-29061",
  "modified": "2026-04-01T23:09:37.913038187Z",
  "published": "2026-03-06T04:45:15.404Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/Forceu/Gokapi/releases/tag/v2.2.3"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/29xxx/CVE-2026-29061.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/Forceu/Gokapi/security/advisories/GHSA-q658-hfpg-35qc"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-29061"
    }
  ],
  "schema_version": "1.7.3",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Gokapi: Privilege escalation via incomplete API-key permission revocation on user rank demotion"
}