---
id: CVE-2025-68941
title: >-
  Gitea before 1.22.3 mishandles access to a private resource upon receiving an
  API token with scope limited to public resources.
summary: >-
  Gitea before 1.22.3 mishandles access to a private resource upon receiving an
  API token with scope limited to public resources.
severity: medium
cvss: 4.9
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N'
cwe:
  - CWE-863
vendor: gitea
product: gitea
affected:
  - gitea < 1.22.3
patched:
  - gitea 1.22.3
published: '2025-12-26'
updated: '2026-10-13'
sourceUpdated: '2026-10-13T10:10:00.193'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-68941'
references:
  - url: 'https://blog.gitea.com/release-of-1.22.3/'
    label: cve@mitre.org
  - url: 'https://github.com/go-gitea/gitea/pull/32218'
    label: cve@mitre.org
  - url: 'https://github.com/go-gitea/gitea/releases/tag/v1.22.3'
    label: cve@mitre.org
tags:
  - nvd
epss: 0.00261
epssPercentile: 0.16544
ingestedAt: '2026-10-13T10:22:03.523Z'
---

## Overview

Gitea before 1.22.3 mishandles access to a private resource upon receiving an API token with scope limited to public resources.

## Affected

- `gitea < 1.22.3`

## Remediation

Upgrade past the affected range:

- `gitea 1.22.3`
