MediumGHSA-45vh-rpc8-hxppCVE-2026-30961GO-2026-4695

Gokapi's File Request MaxSize Limit Bypassed via Multi-Chunk Upload

Published 13 Mar 2026 · Updated 24 Mar 2026

Is your project on an affected github.com/forceu/gokapi?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected package

Affected
<2.2.4
Fixed in
2.2.4
Update to the fixed version for your release line, for example:go get github.com/forceu/gokapi@v2.2.4

Details

Summary

The chunked upload completion path for file requests does not validate the total file size against the per-request MaxSize limit. An attacker with a public file request link can split an oversized file into chunks each under MaxSize and upload them sequentially, bypassing the size restriction entirely. Files up to the server's global MaxFileSizeMB are accepted regardless of the file request's configured limit.

Impact

Any guest with access to a shared file request link can upload files far larger than the administrator-configured size limit, up to the server's global MaxFileSizeMB. This allows unauthorized storage consumption, circumvention of administrative resource policies, and potential service disruption through storage exhaustion. No data exposure or privilege escalation occurs.

Is GHSA-45vh-rpc8-hxpp in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/forceu/gokapi, and gives you the command that fixes it.

More advisories for github.com/forceu/gokapi

  • LowCVE-2026-30943Gokapi vulnerable to Privilege Escalation in File Replace in github.com/forceu/gokapi · 16 Mar 2026
  • LowCVE-2026-30955Gokapi vulnerable to DoS in E2E Metadata Parser in github.com/forceu/gokapi · 16 Mar 2026
  • MediumCVE-2026-30955Gokapi vulnerable to DoS in E2E Metadata Parser · 13 Mar 2026
  • MediumCVE-2026-30943Gokapi vulnerable to Privilege Escalation in File Replace · 13 Mar 2026
  • LowCVE-2026-28683Gokapi has Stored XSS in SVG Hotlinks in github.com/forceu/gokapi · 10 Mar 2026
  • LowCVE-2026-28682Gokapi has Data Leak in Upload Status Stream in github.com/forceu/gokapi · 10 Mar 2026
All 19 advisories for github.com/forceu/gokapi

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.