Skip to content
Heist/ feed
Back to feed
MediumFix available

Gitea push mirror API bypass of DISABLE_NEW_PUSH policy

Type: advisorySources: OSV

The Gitea API endpoint for creating push mirrors (`POST /api/v1/repos/{owner}/{repo}/push_mirrors`) checked only whether mirroring was enabled and not the `[mirror] DISABLE_NEW_PUSH` setting that the web interface enforces. A repository administrator could therefore create new push mirrors on instances where the site administrator had disabled them. A push mirror pushes all refs of the repository to a remote chosen by the caller, on each commit or on a schedule.

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

Source evidence

Gitea push mirror API bypass of DISABLE_NEW_PUSH policy

core-osv · Original source

Published 14 Oct 2026, 08:43 UTC

The Gitea API endpoint for creating push mirrors (`POST /api/v1/repos/{owner}/{repo}/push_mirrors`) checked only whether mirroring was enabled and not the `[mirror] DISABLE_NEW_PUSH` setting that the web interface enforces. A repository administrator could therefore create new push mirrors on instances where the site administrator had disabled them. A push mirror pushes all refs of the repository to a remote chosen by the caller, on each commit or on a schedule.

osv:BIT-gitea-2026-97208

gitea

Fixed versions: 28.1.0

Complete source record
{
  "id": "ad67f1a92d622ad3bf7d56cf52eae4d8c8ceebb6be782d7987c75c5d4e29f1ff",
  "url": "https://osv.dev/vulnerability/BIT-gitea-2026-97208",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Gitea push mirror API bypass of DISABLE_NEW_PUSH policy",
    "summary": "The Gitea API endpoint for creating push mirrors (`POST /api/v1/repos/{owner}/{repo}/push_mirrors`) checked only whether mirroring was enabled and not the `[mirror] DISABLE_NEW_PUSH` setting that the web interface enforces. A repository administrator could therefore create new push mirrors on instances where the site administrator had disabled them. A push mirror pushes all refs of the repository to a remote chosen by the caller, on each commit or on a schedule.",
    "evidence": "osv:BIT-gitea-2026-97208",
    "products": [
      {
        "name": {
          "value": "gitea",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "28.1.0",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "BIT-gitea-2026-97208",
      "aliases": [
        "BIT-gitea-2026-97208",
        "CVE-2026-97208",
        "GHSA-8hhh-mqpg-jpxc"
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "SEMVER",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "28.1.0"
                }
              ]
            }
          ],
          "package": {
            "name": "gitea",
            "purl": "pkg:bitnami/gitea",
            "ecosystem": "Bitnami"
          },
          "severity": [
            {
              "type": "CVSS_V3",
              "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N"
            }
          ],
          "database_specific": {
            "source": "https://github.com/bitnami/vulndb/tree/main/data/gitea/BIT-gitea-2026-97208.json"
          }
        }
      ],
      "modified": "2026-10-14T11:11:04.583782567Z",
      "provider": "osv",
      "references": [
        "https://blog.gitea.com/release-of-28.1.0/",
        "https://github.com/go-gitea/gitea/pull/39501",
        "https://github.com/go-gitea/gitea/pull/39507",
        "https://github.com/go-gitea/gitea/releases/tag/v28.1.0",
        "https://github.com/go-gitea/gitea/security/advisories/GHSA-8hhh-mqpg-jpxc",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-97208"
      ],
      "provider_metadata": {
        "cpes": [
          "cpe:2.3:a:gitea:gitea:*:*:*:*:*:*:*:*"
        ],
        "severity": "Medium"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-97208",
        "evidence": "/aliases"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/database_specific/severity"
  },
  "source_id": "core-osv",
  "document_id": 316247,
  "published_at": "2026-10-14T08:43:18.694+00:00"
}