Description
Gitea versions up to and including 1.25.4 allow redirect bypasses through raw or percent-encoded backslashes in redirect_to values.
Published: 2026-07-03
Score: 6.1 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The updated CVE 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.

Generated by OpenCVE AI on July 23, 2026 at 16:16 UTC.

Remediation

No vendor fix or workaround currently provided.

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 July 23, 2026 at 16:16 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

Tue, 07 Jul 2026 17:30:00 +0000

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'}


Mon, 06 Jul 2026 23:15:00 +0000

Type Values Removed Values Added
First Time appeared Gitea
Gitea gitea Open Source Git Server
Vendors & Products Gitea
Gitea gitea Open Source Git Server

Fri, 03 Jul 2026 20:45:00 +0000

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

Subscriptions

Gitea Gitea Open Source Git Server
cve-icon MITRE

Status: PUBLISHED

Assigner: Gitea

Published:

Updated: 2026-07-07T16:59:40.949Z

Reserved: 2026-02-22T15:13:33.665Z

Link: CVE-2026-25779

cve-icon Vulnrichment

Updated: 2026-07-07T16:16:59.102Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-23T16:30:09Z

Weaknesses
  • CWE-601

    URL Redirection to Untrusted Site ('Open Redirect')