GHSA-j6jp-78w8-34x6

Suggest an improvement
Source
https://github.com/advisories/GHSA-j6jp-78w8-34x6
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-j6jp-78w8-34x6/GHSA-j6jp-78w8-34x6.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-j6jp-78w8-34x6
Aliases
Published
2026-03-13T18:56:32Z
Modified
2026-03-24T21:16:29Z
Severity
  • 4.1 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:L/A:N CVSS Calculator
Summary
Gokapi vulnerable to Privilege Escalation in File Replace
Details

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.

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"
}
References

Affected packages

Go / github.com/forceu/gokapi

Package

Name
github.com/forceu/gokapi
View open source insights on deps.dev
Purl
pkg:golang/github.com/forceu/gokapi

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
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"