checkTokenPublicOnly
routers/api/v1/api.go
Last patched
Overview
checkTokenPublicOnly in routers/api/v1/api.go (go-gitea/gitea) was changed by 4 published CVE fixes between 2025 and 2026, in 5 distinct patches that added or removed 341 lines in total.
go-gitea/gitea has 217 CVEs with a located fix in total, so 2% of them touched this function.
CVEs that patched it
Every published CVE whose fix changed checkTokenPublicOnly, newest first, with the lines each fix touched.
CVE-2026-24791 · lines 257–316 · +55 −40
High · CVSS 8.1EPSS 0.4%2026-08-13CVE-2026-58429 · lines 257–316 · +55 −40
Medium · CVSS 4.9EPSS 0.5%2026-08-13CVE-2026-25714 · lines 257–316 · +55 −40
Medium · CVSS 4.3EPSS 0.4%2026-07-03CVE-2025-68941 · lines 238–293 · +56 −0
Medium · CVSS 5.3EPSS 0.3%2025-12-26
Get an alert when the next CVE fix lands in go-gitea/gitea, with the patched functions.
Monitor these CVEsOther functions in these files
Functions in the same file that CVE fixes also changed.
- 1Routesrouters/api/v1/api.go29 patches · 45 CVEs2025 to 2026
- 2reqTokenrouters/api/v1/api.go6 patches · 4 CVEs2019 to 2025
- 3individualPermsCheckerrouters/api/v1/api.go4 patches · 5 CVEs2025 to 2026
- 4tokenRequiresScopesrouters/api/v1/api.go4 patches · 2 CVEs2025 to 2026
- 5repoAssignmentrouters/api/v1/api.go3 patches · 3 CVEs2026
- 6mustNotBeArchivedrouters/api/v1/api.go2 patches · 4 CVEs2026
- 7contextAuthenticatedUserrouters/api/v1/api.go2 patches · 4 CVEs2026
- 8apiAuthrouters/api/v1/api.go2 patches · 2 CVEs2025 to 2026
Other hotspots in the repository
Functions in go-gitea/gitea changed by the most distinct patches.
Frequently asked questions
Common questions about CVE fixes to checkTokenPublicOnly.
- How many CVEs have patched checkTokenPublicOnly?
- 4 published CVEs changed checkTokenPublicOnly in go-gitea/gitea, in 5 distinct patches totalling 341 changed lines, between 2025 and 2026.
- What is the latest CVE that changed checkTokenPublicOnly?
- CVE-2026-24791 (Public-only tokens bypass private-resource restrictions on `/api/v1/user` self routes), published 2026-08-13, changed lines 257 to 316 of routers/api/v1/api.go.
- How does checkTokenPublicOnly compare to the rest of go-gitea/gitea?
- go-gitea/gitea has 217 CVEs with a located fix in total; 4 of them changed checkTokenPublicOnly.
- What do the line numbers refer to?
- Line numbers are in the fixed version of the file, as the upstream patch left it. A CVE whose fix was backported to several branches is listed once, with the lines from the upstream commit.
References
- routers/api/v1/api.go on GitHub (opens in a new tab)
- All patched functions in go-gitea/gitea
- Patched functions directory
Fix locations are computed by RadicalNotion.AI from the upstream patch diff of each CVE. CVE data is sourced from the CVE Program.
Track go-gitea/gitea CVEs
Get an alert when a new CVE lands in this repository, with the patched functions and AI-written remediation guidance.