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 releases before 1.25.5 improperly handle the forwarded‑proto header used to determine public URLs, accepting malformed or injected values. The server can then generate canonical URLs that do not match the real hostname, enabling website owners to display spoofed links that may redirect users to malicious destinations. This flaw is classified as CWE‑284, an improper authorization of URL generation, and can be leveraged for phishing or credential theft attacks.

Affected Systems

The vulnerability affects the Gitea Open Source Git Server. All releases dated earlier than version 1.25.5 are vulnerable because they lack the protective logic that sanitizes or ignores forwarded‑proto values from untrusted sources.

Risk and Exploitability

An attacker can exploit the flaw by sending HTTP requests that contain a malicious forwarded‑proto header. The attack does not provide code execution or direct system compromise, but it enables deceptive link generation and can mislead users into interacting with phishing sites. The CVSS score of 7.5 indicates a high severity, while the EPSS score of <1 % shows a very low exploitation probability, and the vulnerability is not currently listed in the CISA KEV catalog.

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

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to Gitea 1.25.5 or later, which includes the official fix for forwarded‑proto handling.
  • If an immediate upgrade is not possible, configure the server to strip or reject forwarded‑proto headers from clients that are not trusted reverse proxies.
  • Ensure that any reverse proxy placed before Gitea sanitizes or removes forwarded‑proto values before forwarding requests to the application.

Generated by OpenCVE AI on August 1, 2026 at 20:16 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

Status : Deferred

Published: 2026-07-03T21:16:59.257

Modified: 2026-07-06T18:17:26.860

Link: CVE-2026-27779

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-01T20:30:12Z

Weaknesses