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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/forceu/gokapi | 2.2.3 | GHSA-q658-hfpg-35qc |
| Go | github.com/forceu/gokapi | no fix listed | GO-2026-4626 |
Affected products (as reported)
Weakness: CWE-284 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
References
- https://github.com/Forceu/Gokapi/security/advisories/GHSA-q658-hfpg-35qc x_refsource_CONFIRM
- https://github.com/Forceu/Gokapi/releases/tag/v2.2.3 x_refsource_MISC