CVE-2026-56654
Received Received - Intake

Privilege Escalation in API via Access Token Scope

Vulnerability report for CVE-2026-56654, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-13

Last updated on: 2026-08-13

Assigner: Gitea Limited

Description

Privilege Escalation via Access Token Scope Escalation in API

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-13
Last Modified
2026-08-13
Generated
2026-08-13
AI Q&A
2026-08-13
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 3 associated CPEs
Vendor Product Version / Range
go-gitea gitea to 1.26.4 (inc)
gitea gitea to 1.26.4 (inc)
gitea gitea 1.27.0

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-284 The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

CVE-2026-56654 is a privilege escalation flaw in Gitea affecting versions up to 1.26.4. It involves the API endpoint for creating Personal Access Tokens (POST /users/{username}/tokens). The vulnerability occurs when a token is passed in a specific Authorization header format, which tricks the middleware into allowing the request to proceed without proper password authentication. The handler then creates a new token with elevated privileges, even if the original token had restricted access.

Detection Guidance

Check Gitea versions up to 1.26.4 for exposure. Monitor API logs for POST requests to /users/{username}/tokens with Authorization headers containing tokens. Look for token creation events where scopes exceed the original token's permissions.

Impact Analysis

An attacker with a restricted token could escalate their privileges by creating a fully privileged token without knowing the account password. This could allow unauthorized access to sensitive endpoints, data manipulation, or further system compromise depending on the token's scope.

Mitigation Strategies

Upgrade Gitea to version 1.27.0 or later immediately. Review and revoke any suspicious Personal Access Tokens created before the upgrade. Audit token scopes and disable unnecessary permissions.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-56654. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart