Skip to main content
VulnerabilityPublished

CVE-2026-59766: code.gitea.io/gitea · Gitea CVE-2026-20800 sibling endpoints not covered: revoked user still reads private repo objects via `/api/v1/user/starred` and private issue titles via `/api/v1/user/times`

Affects code.gitea.io/giteaSource GCVE Database

0
Compare

Mentioned vulnerabilities

Not known to be exploited · CVSS 4.3 Medium : upgrade to 1.27.0 when convenient.

Data as of 4 Dec 2026, 18:37 UTC

CVSS 3.1 base score
4.3Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.2% chance of exploitation in 30 days – higher than 22% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 1.27.0
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 21 Jul 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 5 Dec 2026.

What to do

Upgrade code.gitea.io/gitea and gitea.dev to 1.27.0.

Affected software

ProductAffectedFixed in
Gocode.gitea.io/giteaAffected
  • <1.27.0
Fixed in
  • 1.27.0
Gogitea.devpkg:golang/gitea.devOther threatsAffected
  • <1.27.0
Fixed in
  • 1.27.0

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Suggested remediation includes modifying the getStarredRepos function to exclude or redact repositories where the caller lacks access permissions, and filtering tracked-time entries in ListMyTrackedTimes by current repository access. Optionally, clearing a user's stars and time entries for private repositories upon access revocation can further reduce exposure.

Description

Gitea versions prior to 1.27.0 contain a vulnerability where revoked users can still access metadata of private repositories and private issue titles via two API endpoints: /api/v1/user/starred and /api/v1/user/times. This occurs because these endpoints do not properly re-check repository access permissions at output time, allowing former collaborators to enumerate private repos they had starred and read private issue titles indefinitely after access revocation. The leaked information is limited to metadata and does not include repository content or comment bodies.

References

Community reviews

Loading reviews…