Incorrect Authorization Affecting gitea.dev/routers/web/auth package, versions <1.27.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.3% (23rd 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-GITEADEVROUTERSWEBAUTH-18752795
  • published14 Sept 2026
  • disclosed21 Jul 2026
  • creditkhoadb

Introduced: 21 Jul 2026

CVE-2026-55987  (opens in a new tab)
CWE-863  (opens in a new tab)

How to fix?

Upgrade gitea.dev/routers/web/auth to version 1.27.0 or higher.

Overview

Affected versions of this package are vulnerable to Incorrect Authorization through the handleOAuth2SignIn. An attacker can regain access to a previously deactivated account by signing in through an OAuth2 authentication source that does not issue refresh tokens. This allows the attacker to restore their account to active status and obtain a valid session, potentially regaining any previous privileges, including administrative rights.

CVSS Base Scores

version 4.0
version 3.1