---
id: CVE-2026-70406
title: >-
  Gitea's shared comparison helper omits the token repository-access check used
  when updating pull requests
summary: >-
  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 an…
severity: medium
cvss: 6.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N'
cwe:
  - CWE-863
published: '2026-10-14'
updated: '2026-10-14'
sourceUpdated: '2026-10-14T16:17:52.077'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-70406'
references:
  - url: 'https://blog.gitea.com/release-of-1.27.3/'
    label: 88ee5874-cf24-4952-aea0-31affedb7ff2
  - url: 'https://github.com/go-gitea/gitea/pull/39006'
    label: 88ee5874-cf24-4952-aea0-31affedb7ff2
  - url: 'https://github.com/go-gitea/gitea/pull/39013'
    label: 88ee5874-cf24-4952-aea0-31affedb7ff2
  - url: 'https://github.com/go-gitea/gitea/releases/tag/v1.27.3'
    label: 88ee5874-cf24-4952-aea0-31affedb7ff2
  - url: 'https://github.com/go-gitea/gitea/security/advisories/GHSA-m78w-jjjx-gp8r'
    label: 88ee5874-cf24-4952-aea0-31affedb7ff2
tags:
  - nvd
ingestedAt: '2026-10-14T15:36:14.027Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
