CVE-2026-29061 Gokapi: Privilege escalation via incomplete API-key permission revocation on user rank demotion
Demoted users retain elevated API permissions, allowing unauthorized access to file request management and logs in Gokapi.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2026-29061?
CVE-2026-29061 is a medium-severity vulnerability in Forceu Gokapi, published on 6 Mar 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
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.
Weakness: CWE-284
Which versions are affected by CVE-2026-29061?
3 open source packages ship an affected version, including github.com/forceu/gokapi. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/forceu/gokapi Go | All versions | None |
github.com/forceu/gokapi Go | All versions | 2.2.3 |
github.com/forceu/gokapi Go | All versions | 2.2.3 |
Products include Forceu Gokapi.
How do I fix CVE-2026-29061?
Upgrade github.com/forceu/gokapi to 2.2.3 or later.
Is CVE-2026-29061 being exploited?
There is no known exploitation of CVE-2026-29061 in the wild and no public exploit code.
Other vulnerabilities in Forceu Gokapi
- CVE-2026-28683 Gokapi: Stored XSS in SVG Hotlinks
- CVE-2026-30955 Gokapi vulnerable to DoS in E2E Metadata Parser
- CVE-2026-28682 Gokapi: Data Leak in Upload Status Stream
- CVE-2026-29060 Gokapi: Privilege escalation with auth token
- CVE-2025-48494 Gokapi vulnerable to stored XSS via uploading file with malicious file name
Sources
Also known as GHSA-q658-hfpg-35qc, GO-2026-4626.