---
id: CVE-2026-104636
title: >-
  Gitea validated the initial remote URL for push mirrors, wiki remote checks,
  and fetches of migrated pull request heads, but the subsequent raw Git
  operations followed HTTP redirects without revalidating the destination
summary: >-
  Gitea validated the initial remote URL for push mirrors, wiki remote checks,
  and fetches of migrated pull request heads, but the subsequent raw Git
  operations followed HTTP redirects without revalidating the destination. A
  repository adm…
severity: none
cwe:
  - CWE-918
vendor: Gitea
product: gitea.dev
affected:
  - gitea.dev <= 1.27.3
published: '2026-10-06'
updated: '2026-10-06'
sourceUpdated: '2026-10-06T20:17:15.343'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-104636'
references:
  - url: 'https://blog.gitea.com/release-of-28.0.0/'
    label: 88ee5874-cf24-4952-aea0-31affedb7ff2
  - url: 'https://github.com/go-gitea/gitea/pull/39426'
    label: 88ee5874-cf24-4952-aea0-31affedb7ff2
  - url: 'https://github.com/go-gitea/gitea/releases/tag/v28.0.0'
    label: 88ee5874-cf24-4952-aea0-31affedb7ff2
  - url: 'https://github.com/go-gitea/gitea/security/advisories/GHSA-g4hw-fg4c-89mq'
    label: 88ee5874-cf24-4952-aea0-31affedb7ff2
tags:
  - nvd
  - cve.org
ingestedAt: '2026-10-06T20:16:42.496Z'
---

## Overview

Gitea validated the initial remote URL for push mirrors, wiki remote checks, and fetches of migrated pull request heads, but the subsequent raw Git operations followed HTTP redirects without revalidating the destination. A repository administrator using a policy-allowed endpoint that redirects could make Gitea's Git client send requests to an address that the outbound host policy would otherwise block. The impact depends on the configured policy and the internal services reachable from the server.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
