Improper Restriction of Security Token Assignment Affecting gitea.dev/models/user package, versions <1.27.0-rc0


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept

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 IDSNYK-GOLANG-GITEADEVMODELSUSER-18172632
  • published10 Aug 2026
  • disclosed21 Jul 2026
  • creditPcat2003

Introduced: 21 Jul 2026

NewCVE-2026-58429  (opens in a new tab)
CWE-1259  (opens in a new tab)

How to fix?

Upgrade gitea.dev/models/user to version 1.27.0-rc0 or higher.

Overview

Affected versions of this package are vulnerable to Improper Restriction of Security Token Assignment in the organization and permission endpoints when a personal access token is restricted to public-only scope. An attacker can access private organization membership and authorization details by sending requests to endpoints such as /api/v1/user/orgs and /api/v1/users/{username}/orgs/{org}/permissions using a public-only scoped token.

CVSS Base Scores

version 4.0
version 3.1