CVE-2026-126338
Dashboard / Vulnerabilities / CVE-2026-126338
Summary: Gitea private diff disclosure through code comment replies
Details: 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://blog.gitea.com/release-of-28.4.0/, https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/126xxx/CVE-2026-126338.json, https://github.com/go-gitea/gitea/releases/tag/v28.4.0, https://github.com/go-gitea/gitea/security/advisories/GHSA-wgx7-537g-xfrg, https://nvd.nist.gov/vuln/detail/CVE-2026-126338, https://github.com/go-gitea/gitea/pull/40131, https://github.com/go-gitea/gitea/pull/40281
Affected packages
Package
Name:
Purl:
Affected ranges
Type: GIT
Events:
