NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Go

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

mediumCVSS 3.1 4.1GHSA-j6jp-78w8-34x6

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.

Published Mar 13, 2026 · Updated Mar 24, 2026

Affected packages

github.com/forceu/gokapi

Ecosystem
Go
Affected
<= 2.2.3
Fixed in
2.2.4
Check
go list -m github.com/forceu/gokapi

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

Credited to Sijisu, aisafe-bot, Forceu.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Go vulnerabilities

All Go entries