CVE-2026-126338 Gitea private diff disclosure through code comment replies
LowCVSS 3.1
EPSS 0.33%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
Description
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.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| Gitea | >= 1.14.0, < 28.4.0 | 28.4.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Gitea | >= 1.14.0, < 28.4.0 | 28.4.0 |
References
- GitHub Security Advisory GHSA-wgx7-537g-xfrg vendor-advisory
- Fix: go-gitea/gitea pull request #40131 patch
- Fix backport to release/v28: go-gitea/gitea pull request #40281 patch
- Gitea 28.4.0 release announcement release-notes
- go-gitea/gitea v28.4.0 release release-notes
- ENISA EUVD EUVD-2026-126127 third-party-advisory