{"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","slug":"CVE-2026-70406","body":"## Overview\n\nGitea'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.\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.","depth":"sunlit","depthScore":36,"depthScoreParts":{"impact":35.8,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[{"seq":220356,"id":"CVE-2026-70406","ts":1791996231705,"field":"cvss","old":null,"new":"6.5"},{"seq":220355,"id":"CVE-2026-70406","ts":1791996231705,"field":"severity","old":"none","new":"medium"}]}