Vulnerability · Published Mar 6, 2026 · Assigned by GitHub_M

CVE-2026-29061Gokapi: Privilege escalation via incomplete API-key permission revocation on user rank demotion

Medium 5.4

In plain English

A medium-severity improper access control in Gokapi from Forceu. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.1% (higher than 3% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.4Medium
Exploit odds (30 days)0.1%top 97.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/forceu/gokapi2.2.3GHSA-q658-hfpg-35qc
Gogithub.com/forceu/gokapino fix listedGO-2026-4626

Affected products (as reported)

VendorProductVersions
Forceu Gokapi < 2.2.3

Weakness: CWE-284 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

References