PatchSiren cyber security CVE debrief
CVE-2026-70406 Gitea CVE debrief
Gitea's shared comparison helper incorrectly omits token repository-access checks for public-only tokens with read:repository scope. This allows a public-only token to bypass its restriction and retrieve commit history and diffs from a private repository accessible to the token owner. The vulnerability affects Gitea deployments using public-only tokens, potentially leading to unauthorized access and exposure of sensitive information. Gitea administrators and users with public-only tokens should assess their exposure and take steps to prevent unauthorized access to private repository content.
- Vendor
- Gitea
- Product
- Unknown
- CVSS
- Unknown
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-10-14
- Original CVE updated
- 2026-10-14
- Advisory published
- 2026-10-14
- Advisory updated
- 2026-10-14
Who should care
Gitea administrators and users with public-only tokens should assess their exposure and take steps to prevent unauthorized access to private repository content. This includes verifying Gitea deployments for exposure to public-only tokens with read:repository scope, assessing token permissions, and applying patches to Gitea instances to prevent unauthorized access to private repository content.
Why it matters
Defenders should care about CVE-2026-70406 because it allows public-only tokens to bypass restrictions and access private repository content, potentially leading to unauthorized access and exposure of sensitive information. Gitea administrators and users with public-only tokens should assess their exposure and take steps to prevent unauthorized access.
- Potential unauthorized access to private repository content
- Bypassing of public-only token restrictions
- Exposure of commit history and diffs from private repositories
- Need for verification of token permissions and patch application
Technical summary
The vulnerability in Gitea's shared comparison helper allows a public-only token with read:repository scope to bypass its restriction and retrieve commit history and diffs from a private repository accessible to the token owner. This occurs because the shared comparison helper omits the token repository-access check used when updating pull requests. The vulnerability affects Gitea deployments using public-only tokens, potentially leading to unauthorized access and exposure of sensitive information. Gitea administrators and users with public-only tokens should assess their exposure and take steps to prevent unauthorized access to private repository content.
Defensive priority
Defenders should prioritize verifying exposure in Gitea deployments using public-only tokens, assessing token permissions, and applying patches to prevent unauthorized access to private repository content.
Recommended defensive actions
- Verify Gitea deployments for exposure to public-only tokens with read:repository scope
- Assess token permissions and restrict access as needed
- Apply patches to Gitea instances to prevent unauthorized access to private repository content
- Monitor Gitea instance logs for suspicious activity related to public-only tokens
- Review compensating controls for exposed systems while remediation is scheduled and verified
- Check relevant monitoring, detection, and logs for exposed assets that need extra review
- Track exceptions, retest remediated assets, and close the item only after evidence is documented
Evidence notes
The CVE record and source item provide details on the vulnerability in Gitea's shared comparison helper. Official sources, including the CVE Program and NVD, confirm the vulnerability's existence and provide additional context.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-70406 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-70406
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-70406 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-70406
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Gitea private comparison disclosure with public-only tokens
Unverified legacy reference
URL: https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/70xxx/CVE-2026-70406.json
cve_program_cvelist_v5
-
Source reference
Unverified legacy reference
URL: https://github.com/go-gitea/gitea/security/advisories/GHSA-m78w-jjjx-gp8r
Supplemental source - vendor-advisory
-
Source reference
Unverified legacy reference
URL: https://blog.gitea.com/release-of-1.27.3/
Supplemental source - release-notes
-
Source reference
Unverified legacy reference
URL: https://github.com/go-gitea/gitea/pull/39006
Supplemental source - patch
-
Source reference
Unverified legacy reference
URL: https://github.com/go-gitea/gitea/pull/39013
Supplemental source - patch
-
Source reference
Unverified legacy reference
URL: https://github.com/go-gitea/gitea/releases/tag/v1.27.3
Supplemental source - release-notes
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.