Vulnerability advisory

CVE-2026-24791

Public-only tokens bypass private-resource restrictions on `/api/v1/user` self routes

Published Updated OSV record ↗

Also known as GHSA-wrr5-99h5-gq57GO-2026-5721

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

Affected versions

Repository

Affected commitsFixed by commit
GIT github.com/go-gitea/gitea ↗
494017e4788d6defb5610ac68b9733fef5130f46 to before 2c749ce548b1da0a52835861a87b888e67842d292c749ce548b1da0a52835861a87b888e67842d29

Description

Public-only tokens bypass private-resource restrictions on /api/v1/user self routes

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