Incorrect Authorization Affecting github.com/forceu/gokapi/internal/models package, versions <2.2.4


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.01% (1st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Incorrect Authorization vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMFORCEUGOKAPIINTERNALMODELS-15669305
  • published16 Mar 2026
  • disclosed13 Mar 2026
  • creditaisafe-bot, Sijisu

Introduced: 13 Mar 2026

NewCVE-2026-30943  (opens in a new tab)
CWE-863  (opens in a new tab)

How to fix?

Upgrade github.com/forceu/gokapi/internal/models to version 2.2.4 or higher.

Overview

Affected versions of this package are vulnerable to Incorrect Authorization in the file replace API. An attacker can delete files belonging to other users by abusing insufficient authorization checks on the deleteNewFile flag.

Note: This is only exploitable if the attacker has permissions to replace their own files and list other users' uploads.

References

CVSS Base Scores

version 4.0
version 3.1