CVE-2026-30943: Github.com/forceu/gokapi Gokapi Vulnerable To Privilege Escalation Vulnerability
MODERATECVE-2026-30943 is a MODERATE (CVSS 4.1) gokapi vulnerable to privilege escalation vulnerability (CWE-863: Incorrect Authorization) affecting Github.com/forceu/gokapi libraries in the Go ecosystem. The issue involves gokapi vulnerable to privilege escalation in file replace. Remediation is available by upgrading affected packages to version 2.2.4.
CVE-2026-30943 at a Glance
Security Impact
CVSS: 4.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:L/A:N).
How to Fix CVE-2026-30943
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.4
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-30943, 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.4), 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-863: Incorrect Authorization, where the product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check. 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-30943 Affected Github.com/forceu/gokapi Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/forceu/gokapi
|
Go |
< 2.2.4
|
2.2.4
|
References
Frequently Asked Questions
What is CVE-2026-30943?
Which Github.com/forceu/gokapi versions are affected?
What version fixes CVE-2026-30943?
Is github.com/forceu/gokapi affected?
What is the CVSS score of CVE-2026-30943?
What CWE is associated with CVE-2026-30943?
How can I check Go dependencies for CVE-2026-30943?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-j6jp-78w8-34x6",
"modified" : "2026-03-24T21:01:40Z",
"published" : "2026-03-13T18:56:32Z",
"aliases" : [ "CVE-2026-30943" ],
"summary" : "Gokapi vulnerable to Privilege Escalation in File Replace",
"details" : "## Summary\n\nAn insufficient authorization check in the file replace API allows a user with only list visibility permission (`UserPermListOtherUploads`) to delete another user's file by abusing the `deleteNewFile` flag, bypassing the requirement for `UserPermDeleteOtherUploads`.\n\n### Impact\n\nAny authenticated user with `PERM_REPLACE` (replace own files) and `PERM_LIST` (view other users' uploads) can delete any other user's file without needing `PERM_DELETE`.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/forceu/gokapi"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.2.4"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.2.3"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/Forceu/Gokapi/security/advisories/GHSA-j6jp-78w8-34x6"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-30943"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/Forceu/Gokapi"
}, {
"type" : "WEB",
"url" : "https://github.com/Forceu/Gokapi/releases/tag/v2.2.4"
}, {
"type" : "WEB",
"url" : "https://pkg.go.dev/vuln/GO-2026-4696"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-863" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-03-13T18:56:32Z",
"nvd_published_at" : "2026-03-13T19:54:35Z"
}
}