Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
3.1
CVE-2026-126338: Gitea may expose code changes from repositories you cannot view
CVE-2026-126338 · published 6 days ago
Summary
A signed-in user could trick Gitea into showing the line‑by‑line changes (diff) from a pull request in a repository they do not have access to by replying to a code review comment with an incorrect review ID. The problem has been fixed by requiring replies to match the same pull request and, for pending reviews, the original author. Update Gitea to the latest version to apply the fix.
What to do
- Update gitea gitea to version 28.4.0 or later.
Affected software
| Vendor | Product | Affected versions |
|---|---|---|
| gitea | gitea | < 28.4.0 |
Original advisory text
Gitea private diff disclosure through code comment replies
Replying to a code review comment accepted a review ID that belongs to a different pull request, through the web form, the API and incoming mail replies. A signed-in user could reply on a pull request they can access with the ID of a review in a repository they cannot read, and the new comment was attached to that review and received the diff context of the commented lines. Replies are now only accepted for a review of the same pull request, and for a pending review only from its author.
References
- https://github.com/go-gitea/gitea/security/advisories/GHSA-wgx7-537g-xfrg Vendor Advisory
- https://github.com/go-gitea/gitea/pull/40131 Patch
- https://github.com/go-gitea/gitea/pull/40281 Patch
- https://blog.gitea.com/release-of-28.4.0/ Vendor Advisory
- https://github.com/go-gitea/gitea/releases/tag/v28.4.0 Vendor Advisory
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/126xxx/CVE-2026-1263... Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-126338 Vendor Advisory
Internet-facing
60 days
Internal
At next upgrade
- Not known to be exploited
- Needs hands-on effort to exploit
- Gives an attacker partial control
Severity
3.1
Low
Type
CWE-639Authorization Bypass Through User-Controlled Key
Timeline
Published15 Nov 2026
Updated22 Nov 2026
First seen15 Nov 2026
Sources
CVE-2026-126338 · NVD
CVE-2026-126338 · MITRE
CVE-2026-126338 · OSV
GHSA-wgx7-537g-xfrg · GHSA
Track software like this
Free during beta