Vulnerability advisory

CVE-2021-45326

Published Updated OSV record ↗

Also known as BIT-gitea-2021-45326GHSA-4wp3-8q92-mh8wGO-2022-0309

Severity
  • CVSS 3.xCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected versions

Repository

Affected commitsFixed by commit
GIT github.com/go-gitea/gitea ↗
All commits before 31a738b221094cbfc32bf342fb3b76d4e78617da31a738b221094cbfc32bf342fb3b76d4e78617da
Also listed as affected (8)
  • v1.5.1
  • v1.5.0
  • v1.5.0-rc2
  • v1.5.0-rc1
  • v1.5.0-dev
  • v1.1.0
  • v1.0.0
  • v0.9.99

Description

Cross Site Request Forgery (CSRF) vulnerability exists in Gitea before 1.5.2 via API routes.This can be dangerous especially with state altering POST requests.

References

  • Codex
  • Claude Code
  • VS Code
  • GitHub Copilot
  • Cursor
  • Cline
  • Windsurf
  • Google Anti-gravity
  • OpenCode
  • Pi
  • Gemini CLI
  • Hermes Agent
  • Zed
  • Junie
  • Qwen Code
  • Kiro
  • Kilo Code
  • Factory Droid

Set up GitHits for your agents

Run this command:

<> bash
npx githits@latest init

What happens next:

  1. Opens your browser to authorize GitHits
  2. Asks whether to set up GitHits at the user or project level
  3. Detects your supported AI coding tools
  4. Lets you choose which tools to configure
  5. Configures the selected tools