Skip to content
Heist/ feed
Back to feed
MediumFix available

Gitea migration SSRF to reserved addresses through ALLOWED_DOMAINS

Type: advisorySources: OSV

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.

Products
gitea
Affected versions
Not specified
Fixed versions
28.0.0
CVEs
CVE-2026-96400
Confirmed fixed CVEs
Not specified
Updated in this feed
30 Oct 2026, 12:12 UTC · Revision 1

Source evidence

Gitea migration SSRF to reserved addresses through ALLOWED_DOMAINS

core-osv · Original source

Published 14 Oct 2026, 08:43 UTC

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.

osv:BIT-gitea-2026-96400

gitea

Fixed versions: 28.0.0

Complete source record
{
  "id": "94ce58bf37af2162c9c20a77185c7ce741aaa03d2be979498b54f95305e458a7",
  "url": "https://osv.dev/vulnerability/BIT-gitea-2026-96400",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Gitea migration SSRF to reserved addresses through ALLOWED_DOMAINS",
    "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 = 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.",
    "evidence": "osv:BIT-gitea-2026-96400",
    "products": [
      {
        "name": {
          "value": "gitea",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "28.0.0",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "BIT-gitea-2026-96400",
      "aliases": [
        "BIT-gitea-2026-96400",
        "CVE-2026-96400",
        "GHSA-54w9-6cc5-9wj9"
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "SEMVER",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "28.0.0"
                }
              ]
            }
          ],
          "package": {
            "name": "gitea",
            "purl": "pkg:bitnami/gitea",
            "ecosystem": "Bitnami"
          },
          "severity": [
            {
              "type": "CVSS_V3",
              "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"
            }
          ],
          "database_specific": {
            "source": "https://github.com/bitnami/vulndb/tree/main/data/gitea/BIT-gitea-2026-96400.json"
          }
        }
      ],
      "modified": "2026-10-14T11:11:15.033057332Z",
      "provider": "osv",
      "references": [
        "https://blog.gitea.com/release-of-28.0.0/",
        "https://github.com/go-gitea/gitea/pull/39426",
        "https://github.com/go-gitea/gitea/releases/tag/v28.0.0",
        "https://github.com/go-gitea/gitea/security/advisories/GHSA-54w9-6cc5-9wj9",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-96400"
      ],
      "provider_metadata": {
        "cpes": [
          "cpe:2.3:a:gitea:gitea:*:*:*:*:*:*:*:*"
        ],
        "severity": "Medium"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-96400",
        "evidence": "/aliases"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/database_specific/severity"
  },
  "source_id": "core-osv",
  "document_id": 316261,
  "published_at": "2026-10-14T08:43:12.361+00:00"
}