---
id: CVE-2026-60021
title: >-
  Gitea's initial GitLab migration version probe uses an HTTP client without a
  timeout and does not attach the migration task's cancellation context
summary: >-
  Gitea's initial GitLab migration version probe uses an HTTP client without a
  timeout and does not attach the migration task's cancellation context. An
  authenticated user who can start migrations can target an attacker-controlled
  server t…
severity: medium
cwe:
  - CWE-400
published: '2026-10-14'
updated: '2026-10-14'
sourceUpdated: '2026-10-14T16:04:39.483'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-60021'
references:
  - url: 'https://blog.gitea.com/release-of-1.27.3/'
    label: 88ee5874-cf24-4952-aea0-31affedb7ff2
  - url: 'https://github.com/go-gitea/gitea/pull/39023'
    label: 88ee5874-cf24-4952-aea0-31affedb7ff2
  - url: 'https://github.com/go-gitea/gitea/pull/39035'
    label: 88ee5874-cf24-4952-aea0-31affedb7ff2
  - url: 'https://github.com/go-gitea/gitea/releases/tag/v1.27.3'
    label: 88ee5874-cf24-4952-aea0-31affedb7ff2
  - url: 'https://github.com/go-gitea/gitea/security/advisories/GHSA-5952-x23q-p23f'
    label: 88ee5874-cf24-4952-aea0-31affedb7ff2
tags:
  - nvd
  - cve.org
ingestedAt: '2026-10-14T15:36:14.022Z'
vendor: Gitea
product: code.gitea.io/gitea
affected:
  - code.gitea.io/gitea >= 1.16.0 < 1.27.3
epss: 0.00548
epssPercentile: 0.45714
cvss: 6.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-10-18T13:30:24.038745Z'
cvssSource: adp
---

## Overview

Gitea's initial GitLab migration version probe uses an HTTP client without a timeout and does not attach the migration task's cancellation context. An authenticated user who can start migrations can target an attacker-controlled server that keeps the response open indefinitely. The request continues after task cancellation and can exhaust the migration worker pool, preventing other migrations from progressing.

## Remediation

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