Skip to main content
EPSS 0.3%top 78%

CVE-2026-55987: CWE-863 in Gitea Gitea Open Source Git Server

0
High
Published: 08/13/2026 (08/13/2026, 16:44:42 UTC)
Source: GCVE Database
Vendor/Project: Gitea
Product: Gitea Open Source Git Server

Description

OAuth2 sign-in reactivates an administrator-deactivated account on auth sources without refresh tokens (incomplete fix of #38009)

CVSS v3.1

Score 8.1high

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

Affected software

Goghsa
code.gitea.io/gitea
Affected versions
<1.27.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/14/2026, 12:56:38 UTC

Technical Analysis

In Gitea versions before 1.27.0, a flaw exists in the OAuth2 sign-in logic where accounts deactivated by administrators can be reactivated if the authentication source does not provide refresh tokens (such as GitHub or OIDC/OAuth2 without offline_access). The system incorrectly interprets an empty refresh token as a trigger to reactivate the account, enabling users who were deactivated to regain active status and full session access simply by signing in again. This vulnerability does not affect accounts disabled using the stronger "Prohibit Login" setting. The issue is tracked as CVE-2026-55987 and has a CVSS 3.1 score of 8.1 (high severity). A patch is available in Gitea 1.27.0 to fix this incomplete prior fix.

Potential Impact

Deactivated user accounts can be reactivated by simply signing in again via OAuth2 if the authentication source does not issue refresh tokens, bypassing administrator deactivation controls. This results in unauthorized access with full session privileges for those accounts. The vulnerability does not affect accounts disabled with the "Prohibit Login" setting. There are no known exploits in the wild at this time.

Mitigation Recommendations

A patch is available in Gitea version 1.27.0 that fixes this vulnerability. Users should upgrade to version 1.27.0 or later to remediate the issue. Until patched, administrators can use the "Prohibit Login" setting to disable accounts more securely, as this setting is not affected by the vulnerability.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-vrhc-jjfc-m3m3
Osv Schema Version
1.4.0
Aliases
["CVE-2026-55987"]
Ecosystems
["Go"]
Database Specific Severity
HIGH
Cvss Version
3.1

Threat ID: 6a600ab19c2644c7f8fe1c78

Added to database: 07/22/2026, 00:11:29 UTC

Last enriched: 08/14/2026, 12:56:38 UTC

Last updated: 09/14/2026, 22:01:35 UTC

Views: 24

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses