{"schemaVersion":3,"id":"CVE-2026-70406","aliases":[],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2026-10-14T14:36:53.729Z","modified":"2026-10-14T15:03:17.796Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.5,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00341,"percentile":0.2621,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[{"date":"2026-10-15T00:00:00.000Z","score":0.00341,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00341,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00341,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00341,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00341,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00341,"percentile":0.2621}],"last30":[{"date":"2026-10-15T00:00:00.000Z","score":0.00341,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00341,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00341,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00341,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00341,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00341,"percentile":0.2621}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-863","name":"Incorrect Authorization","description":"The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check.","type":"weakness","status":"Incomplete","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/863.html"}],"affected":[{"vendor":"gitea","product":"gitea","name":"Gitea","label":"gitea","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 1.27.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 1.27.2","eol":null,"hubHref":"/vendor/gitea/gitea"}],"affectedCount":1,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/go-gitea/gitea/security/advisories/GHSA-m78w-jjjx-gp8r","label":"github.com/go-gitea/gitea/security/advisories/GHSA-m78w-jjjx-gp8r","hostname":"github.com","tags":["Vendor Advisory"]},{"url":"https://blog.gitea.com/release-of-1.27.3/","label":"blog.gitea.com/release-of-1.27.3/","hostname":"blog.gitea.com","tags":["Release Notes"]},{"url":"https://github.com/go-gitea/gitea/pull/39006","label":"github.com/go-gitea/gitea/pull/39006","hostname":"github.com","tags":["Patch"]},{"url":"https://github.com/go-gitea/gitea/pull/39013","label":"github.com/go-gitea/gitea/pull/39013","hostname":"github.com","tags":["Patch"]},{"url":"https://github.com/go-gitea/gitea/releases/tag/v1.27.3","label":"github.com/go-gitea/gitea/releases/tag/v1.27.3","hostname":"github.com","tags":["Release Notes"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-10-14T14:36:53.729Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-10-14T15:03:17.796Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":26,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T06:56:39.614Z","stale":false,"partial":false}}