{"schema_version":"1.9.0","id":"GHSA-j6jp-78w8-34x6","published":"2026-03-13T18:56:32Z","modified":"2026-03-24T21:16:29.129624Z","aliases":["CVE-2026-30943","GO-2026-4696"],"summary":"Gokapi vulnerable to Privilege Escalation in File Replace","details":"## Summary\n\nAn 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`.\n\n### Impact\n\nAny 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`.","affected":[{"package":{"name":"github.com/forceu/gokapi","ecosystem":"Go","purl":"pkg:golang/github.com/forceu/gokapi"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.2.4"}]}],"database_specific":{"last_known_affected_version_range":"<= 2.2.3","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-j6jp-78w8-34x6/GHSA-j6jp-78w8-34x6.json"}}],"references":[{"type":"WEB","url":"https://github.com/Forceu/Gokapi/security/advisories/GHSA-j6jp-78w8-34x6"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-30943"},{"type":"PACKAGE","url":"https://github.com/Forceu/Gokapi"},{"type":"WEB","url":"https://github.com/Forceu/Gokapi/releases/tag/v2.2.4"},{"type":"WEB","url":"https://pkg.go.dev/vuln/GO-2026-4696"}],"database_specific":{"cwe_ids":["CWE-863"],"github_reviewed":true,"github_reviewed_at":"2026-03-13T18:56:32Z","nvd_published_at":"2026-03-13T19:54:35Z","severity":"MODERATE"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:L/A:N"}]}