CVE-2026-96400: Gitea migration SSRF to reserved addresses through ALLOWED_DOMAINS

Published Oct 6, 2026
·
Updated

With [migrations] ALLOWEDDOMAINS 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 ALLOWLOCALNETWORKS = 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 ALLOWEDDOMAINS configuration is not affected.

Affected Software

1 affected component
Gitea Gitea

Event History

Oct 6, 2026
CVE Published
via MITRE·07:25 PM
Data Sourced
via MITRE·07:25 PM
DescriptionWeakness
Data Sourced
via NVD·08:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who can exploit this issue?

An attacker needs permission to start a migration on the affected Gitea instance. Exploitation also requires the instance to configure [migrations] ALLOWED_DOMAINS with a matching entry, such as * or a hostname wildcard.

2

Are default Gitea installations affected?

No. The default configuration, in which ALLOWED_DOMAINS is empty, is not affected.

3

What systems could be reached through exploitation?

The attacker can cause the Gitea server to connect to reserved or link-local addresses, including 169.254.169.254. This can occur even when ALLOW_LOCALNETWORKS is set to false if the migration hostname matches the configured allow list.

4

What configuration change can reduce exposure before patching?

Avoid broad ALLOWED_DOMAINS entries such as * or hostname wildcards, and remove matching entries where they are not required. Restrict migration initiation privileges to trusted users.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203