Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/forceu/gokapi
  4. ›
  5. CVE-2026-30943

CVE-2026-30943: Gokapi vulnerable to Privilege Escalation in File Replace

March 13, 2026 (updated March 16, 2026)

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.

References

  • github.com/Forceu/Gokapi
  • github.com/Forceu/Gokapi/releases/tag/v2.2.4
  • github.com/Forceu/Gokapi/security/advisories/GHSA-j6jp-78w8-34x6
  • github.com/advisories/GHSA-j6jp-78w8-34x6
  • nvd.nist.gov/vuln/detail/CVE-2026-30943

Code Behaviors & Features

Detect and mitigate CVE-2026-30943 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.2.4

Fixed versions

  • 2.2.4

Solution

Upgrade to version 2.2.4 or above.

Impact 4.1 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-863: Incorrect Authorization

Source file

go/github.com/forceu/gokapi/CVE-2026-30943.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 24 Mar 2026 12:18:42 +0000.