Gokapi: Privilege escalation via incomplete API-key permission revocation on user rank demotion
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-284.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Forceu | Gokapi | before 2.2.3 | 2.2.3 | Patch available | CNA |
| — | github.com/forceu/gokapi (Go) | before 2.2.3 | 2.2.3 | Patch available | GHSA-q658-hfpg-35qc |
- Gokapi VendorForceu Affected before 2.2.3 Fixed in 2.2.3 Patch available CNA
- github.com/forceu/gokapi (Go) Vendor— Affected before 2.2.3 Fixed in 2.2.3 Patch available GHSA-q658-hfpg-35qc
Remediation
- Fix · CNA Gokapi (Forceu) Fixed in 2.2.3
- Fix · GHSA-q658-hfpg-35qc github.com/forceu/gokapi (Go) Fixed in 2.2.3 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-29061
- 2026-10-03 Alias added: GHSA-q658-hfpg-35qc
References
More Forceu Gokapi vulnerabilities
- TI-2026-22898 Gokapi: Stored XSS in SVG Hotlinks CVSS 3.1HIGH 8.7
- TI-2026-23780 Gokapi vulnerable to DoS in E2E Metadata Parser CVSS 3.1MEDIUM 6.5
- TI-2026-22897 Gokapi: Data Leak in Upload Status Stream CVSS 3.1MEDIUM 6.4
- TI-2026-23205 Gokapi: Privilege escalation with auth token CVSS 3.1MEDIUM 5.0
- TI-2025-30774 Gokapi has stored XSS vulnerability in friendly name for API keys CVSS 4.0MEDIUM 4.8
- TI-2025-30773 Gokapi vulnerable to stored XSS via uploading file with malicious file name CVSS 4.0MEDIUM 4.8
Sources
- CVE-2026-29061 · CVE Program
- CVE-2026-29061 · NVD
- FIRST EPSS
- GHSA-q658-hfpg-35qc · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences