Gokapi vulnerable to Privilege Escalation in File Replace
Description
Published to the GitHub Advisory Database
Mar 13, 2026
Reviewed
Mar 13, 2026
Published by the National Vulnerability Database
Mar 13, 2026
Last updated
Mar 24, 2026
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 thedeleteNewFileflag, bypassing the requirement forUserPermDeleteOtherUploads.Impact
Any authenticated user with
PERM_REPLACE(replace own files) andPERM_LIST(view other users' uploads) can delete any other user's file without needingPERM_DELETE.References