Vulnerabilities in pkg:golang/github.com/forceu/gokapi

PACKAGE
Advisory Identifier: GHSA-45vh-rpc8-hxpp
Advisory Summary

CVE-2026-30961 is a MODERATE (CVSS 4.3) gokapi's file request maxsize limit vulnerability (CWE-20: Improper Input Validation) affecting Github.com/forceu/gokapi libraries in the Go ecosystem. The issue involves gokapi's file request maxsize limit bypassed via multi-chunk upload. Remediation is available by upgrading affected packages to version 2.2.4.

10 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/forceu/gokapi

10 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/github.com/forceu/gokapi. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-45vh-rpc8-hxpp CVE-2026-30961 MODERATE Gokapi's File Request MaxSize Limit Bypassed via Multi-Chunk Upload
GHSA-qwc6-vc2v-2ggj CVE-2026-30955 MODERATE Gokapi vulnerable to DoS in E2E Metadata Parser
GHSA-j6jp-78w8-34x6 CVE-2026-30943 MODERATE Gokapi vulnerable to Privilege Escalation in File Replace
GHSA-hcff-qv74-7hr4 CVE-2026-29084 MODERATE Gokapi has CSRF in Login Endpoint
GHSA-q658-hfpg-35qc CVE-2026-29061 MODERATE Gokapi has privilege escalation via incomplete API-key permission revocation on user rank demotion
GHSA-m2hx-wjxc-9fp4 CVE-2026-29060 MODERATE Gokapi has privilege escalation with auth token
GHSA-3c22-5j5m-4jq7 CVE-2026-28683 HIGH Gokapi has Stored XSS in SVG Hotlinks
GHSA-c36c-7pc2-f2ph CVE-2026-28682 MODERATE Gokapi has Data Leak in Upload Status Stream
GHSA-4xg4-54hm-9j77 CVE-2025-48495 MODERATE Gokapi has stored XSS vulnerability in friendly name for API keys
GHSA-95rc-wc32-gm53 CVE-2025-48494 MODERATE Gokapi vulnerable to stored XSS via uploading file with malicious file name

CVE-2026-30961 at a Glance

CVE Identifier CVE-2026-30961
GHSA Identifier GHSA-45vh-rpc8-hxpp
Severity MODERATE
CVSS v3.1 Base Score 4.3
CWE Classification CWE-20: Improper Input Validation
Affected Product Github.com/forceu/gokapi
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 4.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability Low (A:L)

How to Fix CVE-2026-30961

To remediate this vulnerability, upgrade all affected Github.com/forceu/gokapi dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/forceu/gokapi fixed: 2.2.4
Upgrade github.com/forceu/gokapi to 2.2.4
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/forceu/gokapi

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-30961, inspect your project dependencies for Github.com/forceu/gokapi:

inspect dependencies for github.com/forceu/gokapi

Analyze the terminal output to locate any version of Github.com/forceu/gokapi in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.2.4), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Github.com/forceu/gokapi, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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.

CVE-2026-30961 Affected Github.com/forceu/gokapi Versions

1 component(s)
Fixed Versions:
2.2.4
Product / Package Ecosystem Affected Versions Fixed Version
github.com/forceu/gokapi
Go
< 2.2.4
2.2.4

References

Frequently Asked Questions

What is CVE-2026-30961?
CVE-2026-30961 is a security vulnerability in Github.com/forceu/gokapi involving Gokapi's File Request MaxSize Limit Bypassed via Multi-Chunk Upload under CWE-20: Improper Input Validation.
Which Github.com/forceu/gokapi versions are affected?
Affected versions include releases prior to 2.2.4 across affected packages: github.com/forceu/gokapi.
What version fixes CVE-2026-30961?
Upgrading to 2.2.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/forceu/gokapi affected?
Yes, github.com/forceu/gokapi is affected in releases prior to 2.2.4. Upgrade your dependency to 2.2.4 or later.
What is the CVSS score of CVE-2026-30961?
CVE-2026-30961 has a CVSS v3.1 base score of 4.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L.
What CWE is associated with CVE-2026-30961?
CVE-2026-30961 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check Go dependencies for CVE-2026-30961?
Run the dependency tree command: 'inspect dependencies for github.com/forceu/gokapi'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-45vh-rpc8-hxpp",
  "modified" : "2026-03-24T21:02:48Z",
  "published" : "2026-03-13T18:56:51Z",
  "aliases" : [ "CVE-2026-30961" ],
  "summary" : "Gokapi's File Request MaxSize Limit Bypassed via Multi-Chunk Upload",
  "details" : "### Summary\n\nThe 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.\n\n### Impact\n\nAny 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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/forceu/gokapi"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.2.4"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 2.2.3"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/Forceu/Gokapi/security/advisories/GHSA-45vh-rpc8-hxpp"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-30961"
  }, {
    "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-4695"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20", "CWE-770" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-03-13T18:56:51Z",
    "nvd_published_at" : "2026-03-13T19:54:35Z"
  }
}