{"id":"GO-2026-6059","revision":null,"records":[{"revision":"75bfb3cff2a9406f8e07865e314368d0","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-58431","aliases":[],"title":"Public-only API token restriction is not enforced on team API routes","description":"Public-only API token restriction is not enforced on team API routes","state":0,"publishedAt":"2026-08-13T16:44:49.923+00:00","modifiedAt":"2026-08-14T17:24:33.805+00:00","affected":[{"ecosystem":"Vendor product","name":"Gitea Open Source Git Server","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"Gitea\",\n                    \"product\": \"Gitea Open Source Git Server\",\n                    \"versions\": [\n                        {\n                            \"version\": \"0\",\n                            \"lessThanOrEqual\": \"1.26.4\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"semver\"\n                        }\n                    ],\n                    \"defaultStatus\": \"unaffected\"\n                }"}],"metrics":[],"references":["https://github.com/go-gitea/gitea/security/advisories/GHSA-h56g-4qw7-2mxg","https://github.com/go-gitea/gitea/releases/tag/v1.27.0","https://blog.gitea.com/gitea-1.27.0-is-released/"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-58431","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-58431","identifiers":["CVE-2026-58431"]},"retained":false,"historicalAffected":[]},{"revision":"2bfcf19e37704b4eaa8cdda2440dee0c","observedAt":"2026-11-19T17:49:22.022+00:00","statement":{"source":"euvd","id":"EUVD-2026-58158","aliases":["CVE-2026-58431","GHSA-h56g-4qw7-2mxg"],"title":"Public-only API token restriction is not enforced on team API routes","description":"Public-only API token restriction is not enforced on team API routes","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","score":4.3,"severity":null}],"references":["https://github.com/go-gitea/gitea/security/advisories/GHSA-h56g-4qw7-2mxg","https://github.com/go-gitea/gitea/releases/tag/v1.27.0","https://blog.gitea.com/gitea-1.27.0-is-released/"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-58158","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Aug 13, 2026, 4:44:49 PM","dateUpdated":"Aug 14, 2026, 5:24:33 PM"},"relatedAdvisories":[{"id":"WID-SEC-W-2026-2304","title":"Gitea: Mehrere Schwachstellen","vulnerabilityIds":["CVE-2026-58417","CVE-2026-58420","CVE-2026-58425","CVE-2026-58427","CVE-2026-58428","CVE-2026-58429","CVE-2026-58431","CVE-2026-58432","CVE-2026-58433","CVE-2026-58434","CVE-2026-58435","CVE-2026-58436","CVE-2026-58437","CVE-2026-58438","CVE-2026-58439","CVE-2026-58440","CVE-2026-58441","CVE-2026-58442","CVE-2026-58443","CVE-2026-58444","CVE-2026-58445","CVE-2026-58507","CVE-2026-58508","CVE-2026-58510","CVE-2026-58511","CVE-2026-59763","CVE-2026-59765","CVE-2026-59766","CVE-2026-23603","CVE-2026-42931","CVE-2026-50105","CVE-2026-54481","CVE-2026-55982","CVE-2026-55984","CVE-2026-55986","CVE-2026-55987","CVE-2026-56443","CVE-2026-56654","CVE-2026-56657","CVE-2026-56750","CVE-2026-56755","CVE-2026-57886","CVE-2026-57894","CVE-2026-57897","CVE-2026-58314","CVE-2026-58416"]}],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2026-58158","identifiers":["EUVD-2026-58158","CVE-2026-58431","GHSA-h56g-4qw7-2mxg"]},"retained":false,"historicalAffected":[]},{"revision":"f0275bf3c051474687eadba531d79535","observedAt":"2026-10-25T14:19:16.843+00:00","statement":{"source":"nvd","id":"CVE-2026-58431","aliases":[],"title":"Public-only API token restriction is not enforced on team API routes","description":"Public-only API token restriction is not enforced on team API routes","state":0,"publishedAt":"2026-08-13T17:17:27.05+00:00","modifiedAt":"2026-08-26T16:53:48.3+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · 134c704f-9b21-4f2e-91b3-4a467353bcc0 · Secondary","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","score":4.3,"severity":"MEDIUM"}],"references":["https://blog.gitea.com/gitea-1.27.0-is-released/","https://github.com/go-gitea/gitea/releases/tag/v1.27.0","https://github.com/go-gitea/gitea/security/advisories/GHSA-h56g-4qw7-2mxg"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-58431","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Deferred","weaknesses":["CWE-863"],"productCriteria":[],"sourceDates":{"published":"2026-08-13T17:17:27.050","lastModified":"2026-08-26T16:53:48.300"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-58431","identifiers":["CVE-2026-58431"]},"retained":false,"historicalAffected":[]},{"revision":"d8f3fc3b7fb046d883185680b7659cb0","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-h56g-4qw7-2mxg","aliases":["CVE-2026-58431","GO-2026-6059"],"title":"Gitea: Public-only API token restriction is not enforced on team API routes","description":"### Summary\n\nGitea's `/api/v1/teams/{id}` API routes do not correctly enforce the `public-only` access token restriction.\n\nA `public-only` token is intended to limit API access to public repositories and public organizations. However, several team API routes continue to return private team repository metadata and private team activity feed entries when called with a `public-only` token.\n\n### Details\n\nThe `/api/v1/teams/{teamid}` route group uses:\n\n```go\norgAssignment(false, true)\n```\n\nThis loads `ctx.Org.Team`, but does not load `ctx.Org.Organization`.\n\nThe `checkTokenPublicOnly` middleware checks organization visibility through `ctx.Org.Organization`. When `ctx.Org.Organization` is nil, the organization visibility check silently passes.\n\nIn addition, the team repository handlers return repositories without applying repository-level `public-only` filtering:\n\n```go\nrepo_model.GetTeamRepositories(...)\nconvert.ToRepo(...)\n```\n\nThey do not call:\n\n```go\nctx.TokenCanAccessRepo(repo)\n```\n\nThe team activity feed handler also sets:\n\n```go\nIncludePrivate: true\n```\n\nbut does not apply:\n\n```go\nopts.ApplyPublicOnly(ctx.PublicOnly)\n```\n\n### PoC\n\nVulnerability is verified on latest gitea release (1.26.2) and nightly build.\nFrist, create a `public-only` organization-scoped token for a user who is a member of a team in a private org with private repositories:\n\n<img width=\"1075\" height=\"577\" alt=\"image\" src=\"https://github.com/user-attachments/assets/4a01d0ab-f67c-47c9-94b1-e74ddd77d7bc\" />\n\n<img width=\"649\" height=\"375\" alt=\"image\" src=\"https://github.com/user-attachments/assets/b5d91962-088e-40f4-bc51-88a17946e6d8\" />\n\nUse the returned token to request team repositories:\n\n<img width=\"1728\" height=\"190\" alt=\"image\" src=\"https://github.com/user-attachments/assets/0f15878f-5806-431d-958c-ffb39bf7c1e9\" />\n\nExpected result: Private repositories should be hidden or rejected for a public-only token.\nActual result: Private team repository metadata is returned.\n\nThe team activity feed endpoint can be tested similarly:\n\n<img width=\"1728\" height=\"237\" alt=\"image\" src=\"https://github.com/user-attachments/assets/280a5ddf-ad14-4769-86a8-1fdad858287c\" />\n\n### Impact\n\nA `public-only` token can access private team resources that should be hidden from that token.","state":0,"publishedAt":"2026-07-21T21:50:11+00:00","modifiedAt":"2026-07-27T17:11:18.5601733+00:00","affected":[{"ecosystem":"Go","name":"gitea.dev","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.27.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/go-gitea/gitea/security/advisories/GHSA-h56g-4qw7-2mxg","https://github.com/go-gitea/gitea","https://github.com/go-gitea/gitea/releases/tag/v1.27.0"],"sourceUrl":"https://github.com/advisories/GHSA-h56g-4qw7-2mxg","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-h56g-4qw7-2mxg","identifiers":["GHSA-h56g-4qw7-2mxg","CVE-2026-58431","GO-2026-6059"]},"retained":false,"historicalAffected":[]},{"revision":"52c4a45d758e49cab9404a403ab1ce75","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GO-2026-6059","aliases":["CVE-2026-58431","GHSA-h56g-4qw7-2mxg"],"title":"Gitea: Public-only API token restriction is not enforced on team API routes in gitea.dev","description":"Gitea: Public-only API token restriction is not enforced on team API routes in gitea.dev","state":0,"publishedAt":"2026-07-27T15:32:45+00:00","modifiedAt":"2026-07-27T17:00:24.8349338+00:00","affected":[{"ecosystem":"Go","name":"gitea.dev","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.27.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://github.com/go-gitea/gitea/security/advisories/GHSA-h56g-4qw7-2mxg","https://github.com/go-gitea/gitea/releases/tag/v1.27.0"],"sourceUrl":"https://osv.dev/vulnerability/GO-2026-6059","license":"OSV · upstream source license applies","key":"osv:GO-2026-6059","identifiers":["GO-2026-6059","CVE-2026-58431","GHSA-h56g-4qw7-2mxg"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-20T22:47:43.1952057+00:00","complete":true,"records":1790,"lastAttemptAt":"2026-11-20T22:47:43.1952057+00:00","lastSuccessAt":"2026-11-20T22:47:43.3752634+00:00","error":null,"lastVerifiedAt":"2026-11-20T22:47:43.3752641+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-ab394367b327976f2e615091908e1dede6760751304792bb06c748f95767cbef-b5b29b8a5139718609527c2e3a0688681b40d1aec6bb070d2dab674b3a86cbe3","complete":true,"records":429990,"lastAttemptAt":"2026-11-20T22:46:01.4357208+00:00","lastSuccessAt":"2026-11-20T22:46:01.316838+00:00","error":null,"lastVerifiedAt":"2026-11-20T22:46:01.4357208+00:00","snapshotPublishedAt":"2026-11-20T22:28:10+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-b786befad55242fb8fcf609d86431c70","complete":false,"records":13914,"lastAttemptAt":"2026-11-20T22:48:31.8111343+00:00","lastSuccessAt":"2026-11-20T22:48:31.805+00:00","error":"48 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-20T22:48:31.805+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13914,"expectedIdentifiers":13962,"failedIdentifiers":48},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-20T22:47:43.1952057+00:00","complete":true,"records":1131,"lastAttemptAt":"2026-11-20T22:47:43.1952057+00:00","lastSuccessAt":"2026-11-20T22:47:43.3761054+00:00","error":null,"lastVerifiedAt":"2026-11-20T22:47:43.3761056+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-88c9705a54a84196935b6d197f75e839","complete":false,"records":13926,"lastAttemptAt":"2026-11-20T22:48:22.8630662+00:00","lastSuccessAt":"2026-11-20T22:48:22.859+00:00","error":null,"lastVerifiedAt":"2026-11-20T22:48:22.859+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13944,"expectedIdentifiers":13962,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-a479762f093c173daaf94ab78c6e1c5dc2a2542cfb360d0428239181880c03b4","complete":true,"records":9988,"lastAttemptAt":"2026-11-20T22:47:43.0473566+00:00","lastSuccessAt":"2026-11-20T15:48:09.8429817+00:00","error":null,"lastVerifiedAt":"2026-11-20T22:47:43.0473566+00:00","snapshotPublishedAt":"2026-11-20T15:18:25+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-6ba2352decd0c95d34a1b50f642582aa34659ce946f552488f0a5cea4e0cc09a","complete":true,"records":2020,"lastAttemptAt":"2026-11-20T22:46:01.495+00:00","lastSuccessAt":"2026-11-20T15:46:15.4249619+00:00","error":null,"lastVerifiedAt":"2026-11-20T22:46:01.495+00:00","snapshotPublishedAt":"2026-11-20T14:48:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-0d57516b4a7264d7a3e50d41b832d65b6f43cdd6a79ce9e39aca7fd9f0df1b84","complete":true,"records":3208,"lastAttemptAt":"2026-11-20T22:47:43.1568332+00:00","lastSuccessAt":"2026-11-20T18:47:57.1855043+00:00","error":null,"lastVerifiedAt":"2026-11-20T22:47:43.1568332+00:00","snapshotPublishedAt":"2026-11-20T17:03:30+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-71b6e9fa2bdef8930270791248008bdac2042cfaeb0c2f448f3abc7146bf0392","complete":true,"records":232844,"lastAttemptAt":"2026-11-20T22:47:42.9156518+00:00","lastSuccessAt":"2026-11-20T22:47:41.8304707+00:00","error":null,"lastVerifiedAt":"2026-11-20T22:47:42.9156518+00:00","snapshotPublishedAt":"2026-11-20T22:33:08+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}