---
id: CVE-2026-96400
title: >-
  With `[migrations] ALLOWED_DOMAINS` set to a matching entry such as `*` or a
  hostname wildcard, Gitea's migration URL validation could permit reserved and
  link-local addresses, such as `169.254.169.254`, even when
  `ALLOW_LOCALNETWORKS = …
summary: >-
  With `[migrations] ALLOWED_DOMAINS` set to a matching entry such as `*` or a
  hostname wildcard, Gitea's migration URL validation could permit reserved and
  link-local addresses, such as `169.254.169.254`, even when
  `ALLOW_LOCALNETWORKS = …
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:35.387'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-96400'
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-54w9-6cc5-9wj9'
    label: 88ee5874-cf24-4952-aea0-31affedb7ff2
tags:
  - nvd
  - cve.org
ingestedAt: '2026-10-06T20:16:42.494Z'
---

## Overview

With `[migrations] ALLOWED_DOMAINS` set to a matching entry such as `*` or a hostname wildcard, Gitea's migration URL validation could permit reserved and link-local addresses, such as `169.254.169.254`, even when `ALLOW_LOCALNETWORKS = false`. The local-network block list did not cover these ranges, and a hostname matching the allow list was accepted regardless of its resolved address. A user who can start migrations on such an instance could reach these addresses from the Gitea server; the default empty `ALLOWED_DOMAINS` configuration is not affected.

## Remediation

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