Description
Gitea's shared comparison helper omits the token repository-access check used when updating pull requests. A public-only token with read:repository scope can route a comparison or pull request creation through a public base repository and retrieve commit history and diffs from a private head repository accessible to the token owner. This bypasses the token's public-only restriction; it does not remove the account's underlying repository permission checks.
Published: 2026-10-14
Score: 6.5 Medium
EPSS: n/a
KEV: No
Impact: Information Disclosure
Action: Apply Patch
AI Analysis

Impact

The shared comparison helper in Gitea omits the repository‑access check that normally protects pulling changes that require user permission. A public‑only token with read:repository scope can therefore drive a comparison or pull‑request creation through a public base repository and retrieve commit history and diffs from a private head repository that the token owner already has access to. This bypasses the token’s public‑only restriction while leaving the underlying repository permission model intact, exposing private repository content to users who only possess a public‑only token.

Affected Systems

Gitea installations running any version prior to v1.27.3 are vulnerable. The advisory notes that the issue was fixed in the 1.27.3 release, so earlier builds must be upgraded.

Risk and Exploitability

With a CVSS score of 6.5, the vulnerability presents a moderate security risk. No EPSS score is available, and the flaw is not currently listed in CISA’s KEV catalog. A malicious actor who can obtain a valid public‑only token for a user that owns a private repository can trigger the comparison or pull‑request API endpoint to pull unrevealed changes from a private head repository, effectively leaking private diffs and history. The exploit requires only an API call; no elevated privileges or exploit code are needed beyond the normal token usage.

Generated by OpenCVE AI on October 15, 2026 at 01:33 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Gitea to version 1.27.3 or a later release that contains the fix.
  • Revoke or restrict public‑only tokens that have the read:repository scope from accessing private repositories.
  • Enforce least‑privilege by ensuring that tokens used for repository operations have only the scopes explicitly required for the task.

Generated by OpenCVE AI on October 15, 2026 at 01:33 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 14 Oct 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 14 Oct 2026 14:45:00 +0000

Type Values Removed Values Added
Description Gitea's shared comparison helper omits the token repository-access check used when updating pull requests. A public-only token with read:repository scope can route a comparison or pull request creation through a public base repository and retrieve commit history and diffs from a private head repository accessible to the token owner. This bypasses the token's public-only restriction; it does not remove the account's underlying repository permission checks.
Title Gitea private comparison disclosure with public-only tokens
Weaknesses CWE-863
References

Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: Gitea

Published:

Updated: 2026-10-14T15:03:17.796Z

Reserved: 2026-08-13T16:50:58.706Z

Link: CVE-2026-70406

cve-icon Vulnrichment

Updated: 2026-10-14T14:54:26.235Z

cve-icon NVD

Status : Deferred

Published: 2026-10-14T15:17:22.570

Modified: 2026-10-14T16:17:52.077

Link: CVE-2026-70406

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-15T01:45:11Z

Weaknesses