CVE-2026-55987: CWE-863 in Gitea Gitea Open Source Git Server
OAuth2 sign-in reactivates an administrator-deactivated account on auth sources without refresh tokens (incomplete fix of #38009)
AI Analysis
Technical Summary
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.
CVE-2026-55987: CWE-863 in Gitea 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
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.