Description
Seven Gitea API routes under `/api/v1/users/{username}` (followers, following, following/{target}, starred, subscriptions, keys and gpg_keys) were registered without the `individualPermsChecker` middleware that enforces the visibility of the target user. An authenticated user could therefore read the followers, following list, starred and watched repositories and public SSH and GPG keys of a user with limited or private visibility, whom they could not otherwise see. The issue was fixed in 1.27.3 and 28.0.0 and disclosed with 28.2.0.
Published: 2026-10-18
Score: n/a
EPSS: n/a
KEV: No
Impact: Information Disclosure
Action: Patch
AI Analysis

Impact

This flaw stems from several Gitea API endpoints under /api/v1/users/{username} that were registered without the required visibility checker middleware. An authenticated user can exploit this to read the followers, following chain, starred or watched repositories, and the public SSH and GPG keys of any user who has limited or private visibility. The data exposed includes the user’s private social graph and cryptographic keys, leading to a privacy breach and potential compromise of user identity and authentication material. The weakness is characterized as an improper access control flaw (CWE‑862).

Affected Systems

The vulnerability exists in Gitea releases prior to the fixes that landed in version 1.27.3 and the 28.0.0 release line. Any deployment running Gitea 1.27.x or 28.0.x before these patch releases, including the 28.2.0 release that shipped the issue, is affected. Upgrading to at least 1.27.3 or 28.0.0 or later resolves the problem.

Risk and Exploitability

The vulnerability requires an attacker to possess authenticated credentials, but the impact is significant because it allows disclosure of sensitive private data. No EPSS score is reported and the flaw is not listed in the CISA KEV catalog, which suggests that the likelihood of exploitation is not high at present. Nevertheless, an authenticated user with privileged rights could use the exposed endpoints to harvest personal data, and the absence of visibility checks could be abused to map social connections and key material across the platform.

Generated by OpenCVE AI on October 18, 2026 at 20:46 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Gitea to a version that includes the security fix – at least 1.27.3 or 28.0.0 and newer.
  • After updating, confirm that the /api/v1/users/{username} routes now enforce visibility rules by testing with an authenticated user; an unauthorized request should no longer return private data.
  • Implement strict API token scopes and audit user credentials to reduce the risk of accidental exposure through compromised or overly privileged accounts.

Generated by OpenCVE AI on October 18, 2026 at 20:46 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sun, 18 Oct 2026 19:15:00 +0000

Type Values Removed Values Added
Description Seven Gitea API routes under `/api/v1/users/{username}` (followers, following, following/{target}, starred, subscriptions, keys and gpg_keys) were registered without the `individualPermsChecker` middleware that enforces the visibility of the target user. An authenticated user could therefore read the followers, following list, starred and watched repositories and public SSH and GPG keys of a user with limited or private visibility, whom they could not otherwise see. The issue was fixed in 1.27.3 and 28.0.0 and disclosed with 28.2.0.
Title Gitea API disclosure of private user social graph, keys and stars
Weaknesses CWE-862
References

Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: Gitea

Published:

Updated: 2026-10-18T19:01:04.328Z

Reserved: 2026-10-04T22:02:04.898Z

Link: CVE-2026-97859

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-18T19:16:33.637

Modified: 2026-10-18T19:16:33.637

Link: CVE-2026-97859

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-18T21:00:10Z

Weaknesses