Description
Gitea versions before 1.25.5 accept malformed or injected forwarded-proto values when detecting public URLs, allowing spoofed canonical URL generation.
Published: 2026-07-03
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Gitea versions prior to 1.25.5 processed any forwarded-proto header value when a malformed or spoofed forwarded-proto value, causing the server to generate a canonical URL that does not match the real hostname. This flaw enables phishing or misleading link generation and is classified as CWE‑284, an improper authorization of URL generation.

Affected Systems

The affected product is the Gitea Open Source Git Server, specifically all releases prior to version 1.25.5. These releases lack proper handling of the forwarded-proto header and are therefore vulnerable to URL spoofing. The vulnerability applies to any intermediate sub-releases that have not adopted protective measures such as stripping or sanitizing forwarded-proto headers coming from untrusted clients.

Risk and Exploitability

An attacker could send HTTP requests that contain a malicious forwarded-proto header to trigger the flaw. This does not provide code execution or direct system compromise, but it allows the server to generate a spoofed canonical URL that misleads users or redirects them to malicious content, resulting in phishing or credential theft. The EPSS score of < 1 % indicates a very low exploitation probability, and the vulnerability is not currently listed in CISA KEV.

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

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Gitea 1.25.5 or later to apply the official fix.
  • If an upgrade is not immediately possible, configure the server to strip or ignore forwarded-proto headers coming from untrusted clients.
  • Ensure that only a trusted reverse proxy is allowed to send forwarded-proto headers and that the proxy sanitizes these values before passing them to Gitea.

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

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

Mon, 06 Jul 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

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

ssvc

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


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

Type Values Removed Values Added
Description Gitea versions before 1.25.5 accept malformed or injected forwarded-proto values when detecting public URLs, allowing spoofed canonical URL generation.
Title Gitea forwarded-proto handling allows public URL spoofing
Weaknesses CWE-284
References

Subscriptions

Gitea Gitea Open Source Git Server
cve-icon MITRE

Status: PUBLISHED

Assigner: Gitea

Published:

Updated: 2026-07-06T15:21:00.874Z

Reserved: 2026-03-03T03:25:28.660Z

Link: CVE-2026-27779

cve-icon Vulnrichment

Updated: 2026-07-06T15:20:34.468Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-23T16:15:03Z

Weaknesses