CVE-2026-20888

Gitea Pull Requests Auto-Merge: Read-Only Users Can Cancel Scheduled Auto-Merge via Web Endpoint (Authorization Bypass)

Published Jan 22, 2026 CVSS 3.1 · 4.3 Medium EPSS < 1% KEV · Not listed
Description
Gitea does not properly verify authorization when canceling scheduled auto-merges via the web interface. A user with read access to pull requests may be able to cancel auto-merges scheduled by other users.

Analysis

AI-generated

Technical impact

Gitea does not correctly enforce authorization checks when a user accesses the web interface endpoint used to cancel scheduled auto‑merges. As a result, any account that has read access to pull requests can invoke this endpoint and cancel auto‑merge jobs that were scheduled by other users. This flaw allows a low‑privileged user to interfere with the repository’s merge workflow, potentially delaying or preventing the integration of code changes. The vulnerability is an example of improper authorization (CWE‑284) and authorization bypass (CWE‑862).

Affected Systems

Vendors affected include the Gitea open source Git server. The CVE does not specify which releases are vulnerable, but the advisory references the 1.25.4 release where the issue was addressed. Consequently, any installation of Gitea that predates that patch, or that has not been updated to a fixed version, is susceptible.

Risk and Exploitability

The CVSS score of 4.3 indicates a moderate severity, and the EPSS score of less than 1% suggests a low probability of exploitation at the time of analysis. The flaw is not listed in the CISA KEV catalog, so no known active exploitation is documented. The attack can be performed over the web from any browser session that has PR read rights, without requiring elevated permissions or additional authentication steps beyond normal access to pull requests. Because the vulnerability is limited to account permissions rather than system‑wide compromise, the potential impact is confined to the ability to cancel merges, though this could disrupt automated pipelines and delay code delivery.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to Gitea version 1.25.4 or later to receive the fixed authorization check for the cancel‑auto‑merge endpoint.
  • If an upgrade cannot be performed immediately, disable the auto‑merge feature or restrict the cancel‑auto‑merge endpoint to users with at least write access to the repository.
  • Monitor repository logs for unexpected cancellation events and review user permissions to ensure read‑only users do not possess broader privileges than necessary.

Generated by OpenCVE AI on April 18, 2026 at 03:32 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-9cgq-wp42-4rpq Gitea does not properly verify authorization when canceling scheduled auto-merges via the web interface
History
Type Values Removed Values Added
CPEs cpe:2.3:a:gitea:gitea:*:*:*:*:*:-:*:*
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 4.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Gitea
Gitea gitea
Vendors & Products Gitea
Gitea gitea
Type Values Removed Values Added
Description Gitea does not properly verify authorization when canceling scheduled auto-merges via the web interface. A user with read access to pull requests may be able to cancel auto-merges scheduled by other users.
Title Gitea Pull Requests Auto-Merge: Read-Only Users Can Cancel Scheduled Auto-Merge via Web Endpoint (Authorization Bypass)
Weaknesses CWE-284
CWE-862
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Gitea
Published
Updated
Jan 23, 2026, 9:54 PM
Reserved
Jan 8, 2026, 11:02 PM
Status
Analyzed
Published
Jan 22, 2026, 10:16 PM
Modified
Jun 17, 2026, 10:17 AM
Severity
Moderate
Public date
Jan 22, 2026, 10:01 PM