---
id: CVE-2026-34966
title: >-
  Gitea prior to 1.27.0 contains a server-side request forgery vulnerability
  that allows authenticated attackers to bypass SSRF protections by exploiting
  HTTP fetch operations in migration and OAuth avatar code paths that use Go's
  default …
summary: >-
  Gitea prior to 1.27.0 contains a server-side request forgery vulnerability
  that allows authenticated attackers to bypass SSRF protections by exploiting
  HTTP fetch operations in migration and OAuth avatar code paths that use Go's
  default …
severity: high
cvss: 7.6
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:L/A:N'
cwe:
  - CWE-918
vendor: gitea
product: code.gitea.io/gitea
affected:
  - code.gitea.io/gitea < 1.27.0
patched:
  - code.gitea.io/gitea 1.27.0
published: '2026-08-05'
updated: '2026-09-24'
sourceUpdated: '2026-09-24T20:43:32.537'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-34966'
references:
  - url: 'https://github.com/go-gitea/gitea'
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/go-gitea/gitea/commit/b969123b7fac51c88daab5cb64e5b2f4abd53288
    label: disclosure@vulncheck.com
  - url: 'https://github.com/go-gitea/gitea/security/advisories/GHSA-2wm4-vwp6-v7xc'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/gitea-prior-to-ssrf-via-migration-uri-fetch-bypass
    label: disclosure@vulncheck.com
  - url: 'https://github.com/go-gitea/gitea/security/advisories/GHSA-2wm4-vwp6-v7xc'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: 'https://github.com/go-gitea/gitea/releases/tag/v1.27.0'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-59765'
  - url: >-
      https://github.com/go-gitea/gitea/commit/de4b8277e9cb576f2315fb03b5ab6478b42a1d31
  - url: 'https://blog.gitea.com/gitea-1.27.0-is-released'
tags:
  - nvd
  - osv
  - go
epss: 0.00389
epssPercentile: 0.303
aliases:
  - GHSA-2wm4-vwp6-v7xc
  - CVE-2026-59765
  - GO-2026-6039
ecosystem: go
ingestedAt: '2026-08-07T19:14:15.506Z'
scores:
  nvd: 7.6
  osv: 7.5
---

## Overview

Gitea prior to 1.27.0 contains a server-side request forgery vulnerability that allows authenticated attackers to bypass SSRF protections by exploiting HTTP fetch operations in migration and OAuth avatar code paths that use Go's default http.Get without a custom DialContext. Attackers can supply arbitrary URLs through release asset download URLs, pull-request patch URLs, or OAuth avatar endpoints to reach internal services, cloud instance-metadata endpoints, or read local files such as the application configuration containing database credentials and signing secrets, with exfiltrated content persisted as migration release assets for later retrieval.

## Remediation

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

## Package advisory (CVE-2026-34966)

Affected packages:

- `code.gitea.io/gitea < 1.27.0`

Patched in:

- `code.gitea.io/gitea 1.27.0`

Source: https://osv.dev/vulnerability/GHSA-2wm4-vwp6-v7xc
