Improper Authentication Affecting gitea.dev/routers/api/v1/user package, versions <1.27.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

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 Improper Authentication vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITEADEVROUTERSAPIV1USER-18601987
  • published10 Aug 2026
  • disclosed21 Jul 2026
  • creditUnknown

Introduced: 21 Jul 2026

NewCVE-2026-56654  (opens in a new tab)
CWE-287  (opens in a new tab)

How to fix?

Upgrade gitea.dev/routers/api/v1/user to version 1.27.0 or higher.

Overview

Affected versions of this package are vulnerable to Improper Authentication via the CreateAccessToken process. An attacker can gain elevated privileges by supplying a restricted token in the Authorization: Basic <token>:x-oauth-basic format, which bypasses authentication checks and allows creation of a new token with broader access scopes than originally permitted.

CVSS Base Scores

version 4.0
version 3.1