CVE-2026-30943: Github.com/forceu/gokapi Gokapi Vulnerable To Privilege Escalation Vulnerability

MODERATE
Advisory Identifier: GHSA-j6jp-78w8-34x6
CVSS 4.1
CWE-863
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2026-30943
GHSA Identifier GHSA-j6jp-78w8-34x6
Severity MODERATE
CVSS v3.1 Base Score 4.1
CWE Classification CWE-863: Incorrect Authorization
Affected Product Github.com/forceu/gokapi
Package Ecosystem Go
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required High (PR:H)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality None (C:N)
Integrity Low (I:L)
Availability None (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.

github.com/forceu/gokapi fixed: 2.2.4
Upgrade github.com/forceu/gokapi to 2.2.4
Verify Direct and Transitive Dependencies

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

## Summary An 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`. ### Impact Any 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`.

CVE-2026-30943 Affected Github.com/forceu/gokapi Versions

1 component(s)
Fixed Versions:
2.2.4
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?
CVE-2026-30943 is a security vulnerability in Github.com/forceu/gokapi involving Gokapi vulnerable to Privilege Escalation in File Replace under CWE-863: Incorrect Authorization.
Which Github.com/forceu/gokapi versions are affected?
Affected versions include releases prior to 2.2.4 across affected packages: github.com/forceu/gokapi.
What version fixes CVE-2026-30943?
Upgrading to 2.2.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/forceu/gokapi affected?
Yes, github.com/forceu/gokapi is affected in releases prior to 2.2.4. Upgrade your dependency to 2.2.4 or later.
What is the CVSS score of CVE-2026-30943?
CVE-2026-30943 has a CVSS v3.1 base score of 4.1 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:L/A:N.
What CWE is associated with CVE-2026-30943?
CVE-2026-30943 is classified under CWE-863: Incorrect Authorization (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.).
How can I check Go dependencies for CVE-2026-30943?
Run the dependency tree command: 'inspect dependencies for github.com/forceu/gokapi'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}