Vulnerability · Published Mar 13, 2026 · Assigned by GitHub_M

CVE-2026-30943Gokapi has Privilege Escalation in File Replace

Medium 4.1

In plain English

A medium-severity incorrect authorization in Gokapi from Forceu. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 8% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)4.1Medium
Exploit odds (30 days)0.2%top 91.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

Gokapi is a self-hosted file sharing server with automatic expiration and encryption support. Prior to 2.2.4, 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. This vulnerability is fixed in 2.2.4.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/forceu/gokapi2.2.4GHSA-j6jp-78w8-34x6
Gogithub.com/forceu/gokapino fix listedGO-2026-4696

Affected products (as reported)

VendorProductVersions
Forceu Gokapi < 2.2.4

Weakness: CWE-863 · Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:L/A:N

References