CVE-2026-25779

Gitea redirect handling permits open redirects through backslash paths

Published Jul 3, 2026 CVSS 3.1 · 6.1 Medium EPSS < 1% KEV · Not listed
Description
Gitea versions up to and including 1.25.4 allow redirect bypasses through raw or percent-encoded backslashes in redirect_to values.

Analysis

AI-generated

Technical impact

The updated description states that Gitea versions up to and including 1.25.4 allow redirect bypasses through raw or percent‑encoded backslashes in redirect_to values. Based on the revised description, an attacker can supply such backslashes to create a redirect to an arbitrary URL, enabling an open redirect. This flaw matches CWE‑601, an open redirect weakness.

Affected Systems

The affected product is Gitea Open Source Git Server, versions up to and including 1.25.4. Version 1.25.5 and later contain the fix, so deployments running earlier releases are vulnerable.

Risk and Exploitability

Based on the updated description, an attacker only needs to send a crafted HTTP request containing a redirect_to value with backslashes to trigger the vulnerability; the server then redirects users to attacker‑controlled URL. The CVSS score of 6.1, EPSS score of < 1%, and the fact that it is not listed in CISA KEV indicate the risk is moderate and exploitation in the wild is unlikely. The open redirect risk can be leveraged for phishing or malicious navigation against user‑facing deployments.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Gitea to version 1.25.5 or later to address the vulnerability.
  • If an upgrade is not possible, configure the server to accept redirect_to values only from a whitelist of trusted domains or disable external redirects entirely.
  • Validate and sanitize the redirect_to parameter on endpoints to reject raw or percent‑encoded backslash sequences that could lead to unintended redirects.

Generated by OpenCVE AI on August 1, 2026 at 20:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-j5r2-4c8j-xc3m Gitea: Open Redirect via redirect_to
History
Type Values Removed Values Added
Metrics cvssV3_1

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

ssvc

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

Type Values Removed Values Added
First Time appeared Gitea
Gitea gitea Open Source Git Server
Vendors & Products Gitea
Gitea gitea Open Source Git Server
Type Values Removed Values Added
Description Gitea versions up to and including 1.25.4 allow redirect bypasses through raw or percent-encoded backslashes in redirect_to values.
Title Gitea redirect handling permits open redirects through backslash paths
Weaknesses CWE-601
References
Weaknesses
  • CWE-601

    URL Redirection to Untrusted Site ('Open Redirect')

Sources

Status
PUBLISHED
Assigner
Gitea
Published
Updated
Jul 7, 2026, 4:59 PM
Reserved
Feb 22, 2026, 3:13 PM
Status
Deferred
Published
Jul 3, 2026, 9:16 PM
Modified
Oct 25, 2026, 3:10 PM