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

Medium 4.1 Published Updated

Attackers with limited list permissions can delete other users' files by abusing the file replace API, bypassing required delete permissions.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-30943?

CVE-2026-30943 is a medium-severity vulnerability in Forceu Gokapi, published on 13 Mar 2026. An attacker needs administrator access to exploit it, with no action from the victim.

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.

Weakness: CWE-863

Which versions are affected by CVE-2026-30943?

3 open source packages ship an affected version, including github.com/forceu/gokapi. It affects 1 product.

PackageAffectedFixed in
github.com/forceu/gokapi GoAll versionsNone
github.com/forceu/gokapi GoAll versions2.2.4
github.com/forceu/gokapi GoAll versions2.2.4

Products include Forceu Gokapi.

How do I fix CVE-2026-30943?

Upgrade github.com/forceu/gokapi to 2.2.4 or later.

Is CVE-2026-30943 being exploited?

There is no known exploitation of CVE-2026-30943 in the wild and no public exploit code.

Sources

Also known as GHSA-j6jp-78w8-34x6, GO-2026-4696.

Is CVE-2026-30943 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free