CVE-2026-29061: Github.com/forceu/gokapi Gokapi Has Privilege Escalation Vulnerability
MODERATECVE-2026-29061 is a MODERATE (CVSS 5.4) gokapi has privilege escalation vulnerability (CWE-284: Improper Access Control) affecting Github.com/forceu/gokapi libraries in the Go ecosystem. The issue involves gokapi has privilege escalation via incomplete api-key permission revocation on user rank demotion. Remediation is available by upgrading affected packages to version 2.2.3.
CVE-2026-29061 at a Glance
Security Impact
CVSS: 5.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N).
How to Fix CVE-2026-29061
To remediate this vulnerability, upgrade all affected Github.com/forceu/gokapi dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/forceu/gokapi to 2.2.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/forceu/gokapi
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-29061, inspect your project dependencies for Github.com/forceu/gokapi:
inspect dependencies for github.com/forceu/gokapi
Analyze the terminal output to locate any version of Github.com/forceu/gokapi in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.2.3), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-284: Improper Access Control, where the product does not restrict or incorrectly restricts access to a resource from an unauthorized actor. In Github.com/forceu/gokapi, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-29061 Affected Github.com/forceu/gokapi Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/forceu/gokapi
|
Go |
< 2.2.3
|
2.2.3
|
References
Frequently Asked Questions
What is CVE-2026-29061?
Which Github.com/forceu/gokapi versions are affected?
What version fixes CVE-2026-29061?
Is github.com/forceu/gokapi affected?
What is the CVSS score of CVE-2026-29061?
What CWE is associated with CVE-2026-29061?
How can I check Go dependencies for CVE-2026-29061?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-q658-hfpg-35qc",
"modified" : "2026-03-06T15:17:16Z",
"published" : "2026-03-05T20:42:32Z",
"aliases" : [ "CVE-2026-29061" ],
"summary" : "Gokapi has privilege escalation via incomplete API-key permission revocation on user rank demotion",
"details" : "### Summary\nA 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.\n\n### Impact\nAny user who previously held Admin rank and had API keys with ApiPermManageFileRequests or ApiPermManageLogs retains those capabilities after demotion. This allows offboarded or demoted users to:\n - Create, list, and delete upload requests\n - Read application logs and system status",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/forceu/gokapi"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.2.3"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/Forceu/Gokapi/security/advisories/GHSA-q658-hfpg-35qc"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-29061"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/Forceu/Gokapi"
}, {
"type" : "WEB",
"url" : "https://github.com/Forceu/Gokapi/releases/tag/v2.2.3"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-284" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-03-05T20:42:32Z",
"nvd_published_at" : "2026-03-06T05:16:40Z"
}
}