{"id":"CVE-2026-126338","kind":"vulnerability","aliases":["CVE-2026-126338","GHSA-wgx7-537g-xfrg"],"related":[],"title":"Code comment reply accepts foreign review ID, leaks private diff hunks","description":"A missing authorization check in Gitea's code-comment reply path lets any signed-in regular user read diff hunks from pull requests in private repositories they have no access to. By submitting a reply whose `reply` form field names a review from another repository, the attacker gets that review's stored diff hunk and commit SHA copied into a comment on a pull request they can comment on. The hunk is up to `[ui] CODE_COMMENT_LINES` diff lines, 4 by default, ending at the commented line. On default settings, the attached reproducer recovers a `PASSWORD=s3cr3t-of-the-victim` line from `victim/private`, while the same attacker gets 404 when asking the API for that review's comments directly.\n\nThe bug is in `createCodeComment` in `services/pull/review.go`. When `reviewID != 0`, it calls `FindComments` with only `ReviewID`, `Line`, `TreePath` and `Type`, with no `IssueID` or `RepoID`. It then copies the first match's `Patch`, `CommitSHA` and `Invalidated` into the new comment. The caller, `pull_service.CreateCodeComment`, only checks that the caller's own pull request already has a code comment on that path and line. It never checks that `replyReviewID` belongs to that pull request. The attacker first comments on the matching path and line in a pull request they can comment on (they do not need a repository of their own). They then post the reply form to `POST /{owner}/{repo}/pulls/{index}/files/reviews/comments`, and read the copied `diff_hunk` back by replying to the planted comment through the API. The leak is narrow. Each hit needs a review ID, which is sequential instance-wide but does not reveal its repository. It also needs the exact file path and line of a review comment on the new side of the diff, although the response status confirms guesses (200 for a hit, 500 for a wrong path or line, 404 for a nonexistent review). Pending reviews are affected too, but only the diff under a draft comment leaks, not the draft text. The unbound lookup was introduced in b091c994b593 (\"Comments on review should have the same sha (#13448)\") and first released in v1.14.0. The API reply route used here to read the hunk back exists only since v1.27.0, so on older releases the hunk is still copied but cannot be read back this way.\n\n## Details\n\nWhen a code comment is posted as a reply, `createCodeComment` reuses the diff hunk stored with the first comment of the review\nbeing replied to. The review ID is the form field `reply`, and the lookup is not limited to the pull request (or repository)\nthe request was authorized for:\n\n```go\n// services/pull/review.go:218\nif line > 0 {\n\tif reviewID != 0 {\n\t\tfirst, err := issues_model.FindComments(ctx, &issues_model.FindCommentsOptions{\n\t\t\tReviewID: reviewID,          // request-controlled; no IssueID, no RepoID\n\t\t\tLine:     line,\n\t\t\tTreePath: treePath,\n\t\t\tType:     issues_model.CommentTypeCode,\n\t\t\t…\n\t\t})\n\t\tif err == nil && len(first) > 0 {\n\t\t\tcommitID = first[0].CommitSHA\n\t\t\tinvalidated = first[0].Invalidated\n\t\t\tpatch = first[0].Patch      // diff hunk of whatever repository that review belongs to\n\t\t} …\n```\n\nObserved at commit `31626de2a6cdd3e1fe93216e4ac80f511297f1e7` with default settings: `victim/private` is a private repository whose\npull request changes line 3 of `deploy/settings.env` to `PASSWORD=s3cr3t-of-the-victim`; review 1 has a comment on that line.\nThe unrelated regular user `attacker` opens a pull request in their own `attacker/scratch`, comments on `deploy/settings.env`\nline 3 there, and submits the reply form with `reply=1`. The API then hands the attacker a comment in `attacker/scratch` with\n\n```\n\"diff_hunk\": \"@@ -1,4 +1,4 @@\\n HOST=db.internal\\n USER=app\\n-PASSWORD=\\n+PASSWORD=s3cr3t-of-the-victim\"\n```\n\nand the `commit_id` of the victim's commit, while `GET /api/v1/repos/victim/private/pulls/1/reviews/1/comments` answers the\nattacker 404.\n\nThe path from the request to the copy:\n\n1. `POST /{username}/{reponame}/pulls/{index}/files/reviews/comments` (`routers/web/web.go:1662`) sits behind\n   `context.RepoMustNotBeArchived()` (`:1664`) and `optSignIn, context.RepoAssignment, repo.MustAllowPulls, reqUnitPullsReader`\n   (`:1667`). All of them look at the repository in the URL, which can be the attacker's own.\n2. `repo.CreateCodeComment` (`routers/web/repo/pull_review.go:64`) loads the pull request from the URL with `GetActionIssue` and\n   passes `form.Reply` (`services/forms/repo_form.go:471`) unchecked as `replyReviewID` (`:98`). In the UI the field is filled by\n   `templates/repo/diff/comment_form.tmpl:34` with the review ID of the conversation being replied to.\n3. `pull_service.CreateCodeComment` (`services/pull/review.go:119-125`) asks only `ReviewExists(ctx, issue, treePath, line)`\n   (`models/issues/review.go:451`): does the *caller's* pull request already have a code comment on that path and line? The\n   attacker creates that comment first; the path does not have to exist in their pull request. `replyReviewID` is never\n   compared with `issue.ID`.\n4. `createCodeComment(…, replyReviewID, …)` runs the lookup quoted above. `FindCommentsOptions.ToConds`\n   (`models/issues/comment.go:1094-1119`) adds a repository or issue condition only when `RepoID` / `IssueID` are set, so the\n   query is `review_id = ? AND line = ? AND tree_path = ? AND type = code` over all repositories. The new comment is then\n   created on the caller's pull request with `CommitSHA: commitID`, `ReviewID: reviewID`, `Patch: patch`\n   (`services/pull/review.go:287-300`).\n5. Reading it back: the form's HTML response renders the conversation with the hunk of its first comment (the attacker's own).\n   The stored hunk is exposed as `diff_hunk` / `commit_id` by `convert.ToPullReviewComment` (`services/convert/pull_review.go:113-115`).\n   `POST /api/v1/repos/{owner}/{repo}/pulls/{index}/comments/{id}/replies` (`CreatePullReviewCommentReply`,\n   `routers/api/v1/repo/pull_review.go:209`) returns that JSON for the reply it creates. This route cannot name a foreign\n   review by itself, because it loads the parent comment with `GetCommentWithRepoID(ctx, ctx.Repo.Repository.ID, …)` and takes\n   `parent.ReviewID`; but the comment planted in step 4 is in the attacker's repository and carries the foreign `ReviewID`, so\n   a reply to it goes through the same unbound lookup and returns the victim's hunk.\n\nThe unbound lookup was introduced in `b091c994b593` (\"Comments on review should have the same sha (#13448)\", 2020-11-09) and\nfirst released in v1.14.0. The API reply route used in step 5 to read the hunk back only exists since v1.27.0 (`331450b17a`,\n2026-04-27), so on older releases the hunk is still copied into the attacker's comment but this way of reading it back is not\navailable. The notification mail template (`templates/mail/repo/issue/default.tmpl:56`) also prints the stored hunk; that\nchannel was not tested (no mail offline).\n\nOther users of a request-supplied review ID bind it: `DismissReview` compares `review.Issue.RepoID` with the repository\n(`services/pull/review.go:420-423`), and the API's `prepareSingleReview` rejects `review.IssueID != pr.IssueID` and pending\nreviews of other users (`routers/api/v1/repo/pull_review.go:722-732`).\n\n## Impact\n\nA signed-in regular user on a default configuration reads diff hunks of pull requests in repositories they have no access to,\nwithin narrow limits: each hit yields at most the last `[ui] CODE_COMMENT_LINES` (default 4) diff lines ending at a line that\ncarries a review comment, plus the commit SHA; only comments on the new side of the diff are reachable (the lookup runs for\n`line > 0`); and for each hunk the attacker must supply the review ID, the exact file path and the line. They need one pull\nrequest they can comment on. No repository of their own is needed: a third account with no repository got the same result\n(HTTP 200) on somebody else's public pull request, once a code comment existed on that path and line there.\n\nReview IDs are one auto-increment sequence for the whole instance, so the attacker's own reviews reveal the current range, but\nan ID does not tell which repository its review belongs to, so the leak cannot be aimed at one chosen repository. Path and\nline have to be known (former collaborator, private fork of a public project, conventional file names) or guessed; each guess\ncosts two requests (the comment on that path and line in the attacker's pull request, then the reply) and the reply's status\nconfirms it. Observed: 200 for a hit, 500 for a wrong path or line on an existing foreign review (`git blame` is run on that\nreview's commit ID in the attacker's repository and fails with `bad object`), 404 for a review ID that does not exist; the two\nmisses create no comment.\n\nThe copy also happens for a review that is still pending: a reply naming the victim's unsubmitted review stored the diff hunk\nunder its draft comment in the attacker's comment, and an API reply to that comment returned it. What leaks is the diff under\nthe draft, not the draft comment's text. In that case the planted comment is\nnot rendered in the form's response, so its ID has to be derived from the sequential comment IDs; this step was checked with the\nID taken from the database and is not part of the reproducer.\n\nAs a side effect the attacker's comment row points to a review of another repository (`comment.review_id`).\n\n## Suggested fix\n\nThe attached patch checks the caller-supplied review ID in `pull_service.CreateCodeComment`, the one service function both the\nweb reply form and the API reply endpoint go through. It loads the review and rejects it with `ErrReviewNotExist` unless it is a\nreview of the pull request being commented on and, if still pending, belongs to the doer (as `prepareSingleReview` does), and\nit additionally binds the lookup in `createCodeComment` to the issue:\n\n```diff\n--- a/services/pull/review.go\n+++ b/services/pull/review.go\n@@ -117,6 +117,15 @@ func CreateCodeComment(\n \tif !pendingReview && replyReviewID != 0 {\n+\t\t// The review ID is provided by the caller, make sure it is a review of this pull request which the doer can see\n+\t\treplyReview, err := issues_model.GetReviewByID(ctx, replyReviewID)\n+\t\tif err != nil {\n+\t\t\treturn nil, err\n+\t\t}\n+\t\tif replyReview.IssueID != issue.ID || (replyReview.Type == issues_model.ReviewTypePending && replyReview.ReviewerID != doer.ID) {\n+\t\t\treturn nil, issues_model.ErrReviewNotExist{ID: replyReviewID}\n+\t\t}\n+\n \t\t// It's not part of a review; maybe a reply to a review comment or a single comment.\n@@ -218,6 +227,7 @@ func createCodeComment(\n \t\t\tfirst, err := issues_model.FindComments(ctx, &issues_model.FindCommentsOptions{\n+\t\t\t\tIssueID:  issue.ID,\n \t\t\t\tReviewID: reviewID,\n```\n\nThe web handler needs no change: `ctx.ServerError` already answers 404 for errors wrapping `util.ErrNotExist`\n(`services/context/context_response.go:170`). In `CreatePullReviewCommentReply` the patch routes the error through\n`ctx.APIErrorAuto(err)` instead of `ctx.APIErrorInternal(err)`, so a rejected review yields 404 instead of 500. A reply naming a\nnonexistent or foreign review is refused and no comment is created; replies to a review of the same pull request are\nunaffected. Unlike `prepareSingleReview`, there is no exception for site admins on other users' pending reviews.\n\nThe patch adds a regression test, `TestCreateCodeCommentReplyReview` in `services/pull/review_test.go`, that calls\n`pull_service.CreateCodeComment` with the ID of a review created on a pull request of another repository (fixtures: issue 3 as\nthe caller's, issue 12 as the foreign one), with another user's pending review of the same pull request, and with a non-existent\nID, each expecting `IsErrReviewNotExist` and no comment created; a reply to a review of the same pull request still succeeds and\ninherits its patch. With the patch applied the reproducer prints `OK`.\n\nComment rows already planted on a live instance keep the copied hunk; code comments whose `review_id` belongs to a review of a\ndifferent issue identify past abuse.\n\n## Suggested patch\n\n```diff\ndiff --git a/routers/api/v1/repo/pull_review.go b/routers/api/v1/repo/pull_review.go\nindex 874c80cc0a..45de6f64a6 100644\n--- a/routers/api/v1/repo/pull_review.go\n+++ b/routers/api/v1/repo/pull_review.go\n@@ -274,7 +274,7 @@ func CreatePullReviewCommentReply(ctx *context.APIContext) {\n \t\t\"\", nil,\n \t)\n \tif err != nil {\n-\t\tctx.APIErrorInternal(err)\n+\t\tctx.APIErrorAuto(err)\n \t\treturn\n \t}\n \tif err := comment.LoadPoster(ctx); err != nil {\ndiff --git a/services/pull/review.go b/services/pull/review.go\nindex 3d42330637..07faf42120 100644\n--- a/services/pull/review.go\n+++ b/services/pull/review.go\n@@ -117,6 +117,15 @@ func CreateCodeComment(ctx context.Context, doer *user_model.User, gitRepo *git.\n \t// - Comments that reply to an existing review\n \n \tif !pendingReview && replyReviewID != 0 {\n+\t\t// The review ID is provided by the caller, make sure it is a review of this pull request which the doer can see\n+\t\treplyReview, err := issues_model.GetReviewByID(ctx, replyReviewID)\n+\t\tif err != nil {\n+\t\t\treturn nil, err\n+\t\t}\n+\t\tif replyReview.IssueID != issue.ID || (replyReview.Type == issues_model.ReviewTypePending && replyReview.ReviewerID != doer.ID) {\n+\t\t\treturn nil, issues_model.ErrReviewNotExist{ID: replyReviewID}\n+\t\t}\n+\n \t\t// It's not part of a review; maybe a reply to a review comment or a single comment.\n \t\t// Check if there are reviews for that line already; if there are, this is a reply\n \t\tif existsReview, err = issues_model.ReviewExists(ctx, issue, treePath, line); err != nil {\n@@ -218,6 +227,7 @@ func createCodeComment(ctx context.Context, doer *user_model.User, repo *repo_mo\n \tif line > 0 {\n \t\tif reviewID != 0 {\n \t\t\tfirst, err := issues_model.FindComments(ctx, &issues_model.FindCommentsOptions{\n+\t\t\t\tIssueID:  issue.ID,\n \t\t\t\tReviewID: reviewID,\n \t\t\t\tLine:     line,\n \t\t\t\tTreePath: treePath,\ndiff --git a/services/pull/review_test.go b/services/pull/review_test.go\nindex 2f9e022b3d..52fcf4bb3d 100644\n--- a/services/pull/review_test.go\n+++ b/services/pull/review_test.go\n@@ -105,3 +105,69 @@ func TestCreateCodeCommentContextOfUnchangedLine(t *testing.T) {\n \t\t})\n \t}\n }\n+\n+func TestCreateCodeCommentReplyReview(t *testing.T) {\n+\trequire.NoError(t, unittest.PrepareTestDatabase())\n+\tctx := t.Context()\n+\tdoer := unittest.AssertExistsAndLoadBean(t, &user_model.User{ID: 2})\n+\tissue := unittest.AssertExistsAndLoadBean(t, &issues_model.Issue{ID: 3})\n+\trequire.NoError(t, issue.LoadRepo(ctx))\n+\trequire.NoError(t, issue.LoadPullRequest(ctx))\n+\n+\tgitRepo, err := git.OpenRepository(ctx, issue.Repo)\n+\trequire.NoError(t, err)\n+\tdefer gitRepo.Close()\n+\theadCommitID, err := gitRepo.GetRefCommitID(ctx, issue.PullRequest.GetGitHeadRefName())\n+\trequire.NoError(t, err)\n+\n+\tconst treePath, line = \"README.md\", 1\n+\tparent, err := pull_service.CreateCodeComment(ctx, doer, gitRepo, issue, line, \"parent\", treePath, false, 0, headCommitID, nil)\n+\trequire.NoError(t, err)\n+\trequire.NotZero(t, parent.ReviewID)\n+\n+\tcreateReviewWithCodeComment := func(t *testing.T, issue *issues_model.Issue, reviewType issues_model.ReviewType) *issues_model.Review {\n+\t\treviewer := unittest.AssertExistsAndLoadBean(t, &user_model.User{ID: 1})\n+\t\trequire.NoError(t, issue.LoadRepo(ctx))\n+\t\treview, err := issues_model.CreateReview(ctx, issues_model.CreateReviewOptions{Issue: issue, Reviewer: reviewer, Type: reviewType})\n+\t\trequire.NoError(t, err)\n+\t\t_, err = issues_model.CreateComment(ctx, &issues_model.CreateCommentOptions{\n+\t\t\tType:     issues_model.CommentTypeCode,\n+\t\t\tDoer:     reviewer,\n+\t\t\tRepo:     issue.Repo,\n+\t\t\tIssue:    issue,\n+\t\t\tContent:  \"other\",\n+\t\t\tLineNum:  line,\n+\t\t\tTreePath: treePath,\n+\t\t\tReviewID: review.ID,\n+\t\t\tPatch:    \"other patch\",\n+\t\t})\n+\t\trequire.NoError(t, err)\n+\t\treturn review\n+\t}\n+\tassertReplyNotExist := func(t *testing.T, reviewID int64) {\n+\t\t_, err := pull_service.CreateCodeComment(ctx, doer, gitRepo, issue, line, \"reply\", treePath, false, reviewID, \"\", nil)\n+\t\tassert.True(t, issues_model.IsErrReviewNotExist(err), \"err: %v\", err)\n+\t\tunittest.AssertNotExistsBean(t, &issues_model.Comment{IssueID: issue.ID, ReviewID: reviewID, Content: \"reply\"})\n+\t}\n+\n+\tt.Run(\"SamePullRequest\", func(t *testing.T) {\n+\t\treply, err := pull_service.CreateCodeComment(ctx, doer, gitRepo, issue, line, \"reply\", treePath, false, parent.ReviewID, \"\", nil)\n+\t\trequire.NoError(t, err)\n+\t\tassert.Equal(t, parent.ReviewID, reply.ReviewID)\n+\t\tassert.Equal(t, parent.Patch, reply.Patch)\n+\t})\n+\n+\tt.Run(\"OtherPullRequest\", func(t *testing.T) {\n+\t\totherIssue := unittest.AssertExistsAndLoadBean(t, &issues_model.Issue{ID: 12})\n+\t\trequire.NotEqual(t, issue.RepoID, otherIssue.RepoID)\n+\t\tassertReplyNotExist(t, createReviewWithCodeComment(t, otherIssue, issues_model.ReviewTypeComment).ID)\n+\t})\n+\n+\tt.Run(\"PendingReviewOfOtherUser\", func(t *testing.T) {\n+\t\tassertReplyNotExist(t, createReviewWithCodeComment(t, issue, issues_model.ReviewTypePending).ID)\n+\t})\n+\n+\tt.Run(\"NotExist\", func(t *testing.T) {\n+\t\tassertReplyNotExist(t, 999999)\n+\t})\n+}\n\n```\n\n\n_Reported by the Anthropic OSS scanner, finding ANT-2026-E7DCETB9 (scan gitea-20261022-004), commit 31626de2a6cdd3e1fe93216e4ac80f511297f1e7._","summary":"Gitea's code-comment reply path accepts a review ID from another repository and copies that review's stored diff hunk into the attacker's comment. A signed-in regular user can read up to four diff lines from pull requests in private repositories they cannot access.","severity":"high","cvss":null,"epss":null,"exploited":false,"exploited_at":null,"products":[{"name":"gitea.dev","fixed":["28.4.0"],"affected":">= 1.14.0, <= 28.3.0","ecosystem":"go"}],"ecosystems":["go"],"tags":["cwe-639","gitea","package","pull-requests","self-hosted"],"not_affected_if":["fixed-version","no-untrusted-users","pull-requests-disabled"],"how_to_check":"- Check the installed Gitea version with `gitea --version` or the release shown in the admin dashboard; versions `>= 1.14.0` and `<= 28.3.0` are affected.\n- Confirm the instance is not on `28.4.0` or later.\n- Review the Gitea source at `services/pull/review.go` for an unbound `FindComments` call with `ReviewID` but no `IssueID`.","fix":"- Gitea `28.4.0`\n- Affected range `>= 1.14.0`, `<= 28.3.0`","status":"open","published_at":"2026-11-15T21:03:06+00:00","first_seen_at":"2026-11-15T21:12:48+00:00","triaged_at":"2026-11-15T21:14:23+00:00","updated_at":"2026-11-15T21:14:23+00:00","category":"package","confidence":0.85,"triage":{"at":"2026-11-15T21:14:23Z","model":"claude-haiku-5-5","output":{"fix":"- Gitea `28.4.0`\n- Affected range `>= 1.14.0`, `<= 28.3.0`","reach":"internet","title":"Gitea: code-comment reply leaks private pull request diff hunks to users","impact":"medium","summary":"Gitea's code-comment reply path accepts a review ID from another repository and copies that review's stored diff hunk into the attacker's comment. A signed-in regular user can read up to four diff lines from pull requests in private repositories they cannot access.","audience":"businesses","category":"package","nicknames":[],"who_cares":["gitea","self-hosted","pull-requests"],"confidence":0.85,"fix_status":"available","needs_auth":"yes","worst_case":"Attacker reads diff hunks from private repositories on the instance.","analyst_note":"","how_to_check":"- Check the installed Gitea version with `gitea --version` or the release shown in the admin dashboard; versions `>= 1.14.0` and `<= 28.3.0` are affected.\n- Confirm the instance is not on `28.4.0` or later.\n- Review the Gitea source at `services/pull/review.go` for an unbound `FindComments` call with `ReviewID` but no `IssueID`.","plain_action":"","product_name":"","needs_analyst":false,"not_affected_if":["fixed-version","no-untrusted-users","pull-requests-disabled"],"who_is_affected":"Any self-hosted Gitea instance where regular users can open pull requests and comment on code. Exposure needs a signed-in account with comment access on at least one pull request, a known or guessed review ID, file path and line; private repositories on the same instance are the targets. Instances that disable pull request commenting for regular users or run only trusted users are lower risk.","user_interaction":"no","product_ecosystem":"","needs_special_setup":"no","severity_if_unknown":"unknown"},"cost_usd":0.001215,"input_tokens":8993,"output_tokens":632,"severity_before":"high"},"analyst_status":null,"analyst_note":null,"search":"'+1':652C '-1':650C '-126338':14A,22A '-2026':13A,21A '-639':25B '/api/v1/repos/victim/private/pulls/1/reviews/1/comments':681C '/files/reviews/comments':317C,700C '/pulls':315C,698C '0':215C,524C,527C,553C,556C,560C,564C '1':603C,636C,694C '13448':431C '1662':702C '200':382C '218':521C '3':592C,627C '31626de2a6cdd3e1fe93216e4ac80f511297f1e7':578C '4':165C,651C,653C '404':195C,393C,685C '500':386C '537g':18A 'accept':4A,41B 'access':82B,114C 'affect':401C 'alreadi':258C 'also':357C 'although':376C 'anoth':46B,128C 'answer':682C 'api':199C,333C,438C,638C 'app':659C 'ask':197C 'attach':177C 'attack':58B,131C,193C,279C,614C,642C,684C 'attacker/scratch':622C,646C 'author':85C,517C 'b091c994b593':422C 'back':324C,447C,465C 'behind':704C 'belong':273C,573C 'bug':207C 'call':217C 'caller':247C,253C 'cannot':81B,462C 'chang':590C 'check':86C,250C,270C 'code':1A,37B,91C,160C,261C,471C 'code-com':36B,90C 'comment':2A,38B,60B,92C,145C,152C,161C,171C,204C,245C,262C,281C,294C,330C,368C,410C,423C,472C,487C,606C,623C,644C 'commit':140C,577C,672C,678C 'commitid':554C 'commitsha':239C,557C 'confirm':380C 'control':537C 'copi':49B,142C,233C,321C,460C,693C 'createcodecom':210C,478C 'ctx':531C 'cve':12A,20A 'cwe':24B 'db.internal':656C 'default':167C,174C,580C 'deploy/settings.env':594C,625C 'detail':468C 'diff':10A,54B,72B,103C,137C,163C,322C,375C,406C,481C,566C,648C 'direct':205C 'draft':409C,414C 'end':168C 'err':529C,549C 'exact':360C 'exist':448C 'field':123C,500C 'file':361C 'findcom':218C 'first':235C,280C,433C,486C,528C,552C,555C,559C,563C 'foreign':5A 'form':122C,310C,499C,633C 'four':71B 'get':132C,194C,680C 'ghsa':16A 'ghsa-wgx7-537g-xfrg':15A 'gitea':26B,34B,88C 'gitea.dev':23A 'go':519C 'guess':381C 'hand':640C 'hit':339C,385C 'host':33B,655C 'hunk':11A,55B,104C,138C,155C,323C,446C,457C,482C,567C,649C 'id':7A,44B,343C,496C,673C 'index':316C,699C 'instanc':348C 'instance-wid':347C 'introduc':420C 'invalid':241C,558C,561C 'issueid':228C,539C 'issues_model.commenttypecode':547C 'issues_model.findcomments':530C 'issues_model.findcommentsoptions':532C 'leak':8A,335C,411C 'len':551C 'let':95C 'limit':507C 'line':73B,162C,164C,172C,187C,222C,267C,287C,364C,392C,523C,542C,543C,591C,609C,626C 'lookup':418C,504C 'match':236C,284C 'miss':84C 'n':654C,657C,661C,663C 'n-password':660C 'name':124C 'narrow':337C 'need':299C,340C,358C 'never':269C 'new':244C,371C 'nil':550C 'nonexist':396C 'observ':575C 'older':454C 'open':615C 'owner':313C 'packag':27B 'password':181C,596C,662C,664C 'patch':238C,562C,565C 'path':40B,94C,265C,285C,362C,390C,687C 'pend':398C 'plant':329C 'post':307C,312C,474C,695C 'privat':9A,78B,109C,585C 'pull':29B,75B,106C,148C,256C,276C,290C,510C,588C,617C 'pull-request':28B 'pull_service.createcodecomment':248C 'read':68B,102C,319C,444C,464C 'recov':179C 'regular':65B,100C,612C 'releas':434C,455C 'repli':3A,39B,93C,119C,121C,309C,326C,439C,477C,492C,501C,632C,635C 'replyreviewid':272C 'repo':314C 'repoid':230C,541C 'reponam':697C 'repositori':47B,79B,110C,129C,301C,355C,513C,570C,586C 'reproduc':178C 'request':30B,76B,107C,149C,257C,277C,291C,511C,515C,536C,589C,618C,690C 'request-control':535C 'respons':378C 'reus':479C 'reveal':353C 'review':6A,43B,51B,126C,134C,202C,342C,367C,397C,399C,425C,490C,495C,572C,602C 'reviewid':214C,221C,526C,533C,534C 'rout':440C 'routers/web/web.go':701C 's3cr3t':183C,598C,666C 's3cr3t-of-the-victim':182C,597C,665C 'self':32B 'self-host':31B 'sequenti':346C 'services/pull/review.go':212C,520C 'set':175C,581C 'sha':141C,430C 'side':372C 'sign':63B,98C 'signed-in':62B,97C 'sinc':450C 'sit':703C 'status':379C 'still':459C 'store':53B,136C,483C 'submit':117C,630C 'text':415C 'treepath':223C,544C,545C 'type':225C,546C 'ui':159C 'unbound':417C 'unrel':611C 'use':441C 'user':66B,101C,613C,658C 'usernam':696C 'v1.14.0':436C 'v1.27.0':451C 'victim':186C,601C,669C,676C 'victim/private':189C,582C 'way':467C 'wgx7':17A 'whatev':569C 'whose':120C,587C 'wide':349C 'wrong':389C 'xfrg':19A","nicknames":[],"mitigations":[],"who_affected":"Any self-hosted Gitea instance where regular users can open pull requests and comment on code. Exposure needs a signed-in account with comment access on at least one pull request, a known or guessed review ID, file path and line; private repositories on the same instance are the targets. Instances that disable pull request commenting for regular users or run only trusted users are lower risk.","tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"businesses","plain_action":null,"pkeys":["giteadev"],"ptokens":["dev","gitea"],"labels":["cwe639","gitea","go","high","package","pullrequests","selfhosted"],"campaign_type":null,"search_a":"'-126338':14A,22A '-2026':13A,21A '537g':18A 'accept':4A 'code':1A 'comment':2A 'cve':12A,20A 'diff':10A 'foreign':5A 'ghsa':16A 'ghsa-wgx7-537g-xfrg':15A 'gitea.dev':23A 'hunk':11A 'id':7A 'leak':8A 'privat':9A 'repli':3A 'review':6A 'wgx7':17A 'xfrg':19A","search_b":"'-639':25B 'accept':41B 'access':82B 'anoth':46B 'attack':58B 'cannot':81B 'code':37B 'code-com':36B 'comment':38B,60B 'copi':49B 'cwe':24B 'diff':54B,72B 'four':71B 'gitea':26B,34B 'host':33B 'hunk':55B 'id':44B 'line':73B 'packag':27B 'path':40B 'privat':78B 'pull':29B,75B 'pull-request':28B 'read':68B 'regular':65B 'repli':39B 'repositori':47B,79B 'request':30B,76B 'review':43B,51B 'self':32B 'self-host':31B 'sign':63B 'signed-in':62B 'store':53B 'user':66B","search_c":"'+1':652C '-1':650C '/api/v1/repos/victim/private/pulls/1/reviews/1/comments':681C '/files/reviews/comments':317C,700C '/pulls':315C,698C '0':215C,524C,527C,553C,556C,560C,564C '1':603C,636C,694C '13448':431C '1662':702C '200':382C '218':521C '3':592C,627C '31626de2a6cdd3e1fe93216e4ac80f511297f1e7':578C '4':165C,651C,653C '404':195C,393C,685C '500':386C 'access':114C 'affect':401C 'alreadi':258C 'also':357C 'although':376C 'anoth':128C 'answer':682C 'api':199C,333C,438C,638C 'app':659C 'ask':197C 'attach':177C 'attack':131C,193C,279C,614C,642C,684C 'attacker/scratch':622C,646C 'author':85C,517C 'b091c994b593':422C 'back':324C,447C,465C 'behind':704C 'belong':273C,573C 'bug':207C 'call':217C 'caller':247C,253C 'cannot':462C 'chang':590C 'check':86C,250C,270C 'code':91C,160C,261C,471C 'code-com':90C 'comment':92C,145C,152C,161C,171C,204C,245C,262C,281C,294C,330C,368C,410C,423C,472C,487C,606C,623C,644C 'commit':140C,577C,672C,678C 'commitid':554C 'commitsha':239C,557C 'confirm':380C 'control':537C 'copi':142C,233C,321C,460C,693C 'createcodecom':210C,478C 'ctx':531C 'db.internal':656C 'default':167C,174C,580C 'deploy/settings.env':594C,625C 'detail':468C 'diff':103C,137C,163C,322C,375C,406C,481C,566C,648C 'direct':205C 'draft':409C,414C 'end':168C 'err':529C,549C 'exact':360C 'exist':448C 'field':123C,500C 'file':361C 'findcom':218C 'first':235C,280C,433C,486C,528C,552C,555C,559C,563C 'form':122C,310C,499C,633C 'get':132C,194C,680C 'gitea':88C 'go':519C 'guess':381C 'hand':640C 'hit':339C,385C 'host':655C 'hunk':104C,138C,155C,323C,446C,457C,482C,567C,649C 'id':343C,496C,673C 'index':316C,699C 'instanc':348C 'instance-wid':347C 'introduc':420C 'invalid':241C,558C,561C 'issueid':228C,539C 'issues_model.commenttypecode':547C 'issues_model.findcomments':530C 'issues_model.findcommentsoptions':532C 'leak':335C,411C 'len':551C 'let':95C 'limit':507C 'line':162C,164C,172C,187C,222C,267C,287C,364C,392C,523C,542C,543C,591C,609C,626C 'lookup':418C,504C 'match':236C,284C 'miss':84C 'n':654C,657C,661C,663C 'n-password':660C 'name':124C 'narrow':337C 'need':299C,340C,358C 'never':269C 'new':244C,371C 'nil':550C 'nonexist':396C 'observ':575C 'older':454C 'open':615C 'owner':313C 'password':181C,596C,662C,664C 'patch':238C,562C,565C 'path':94C,265C,285C,362C,390C,687C 'pend':398C 'plant':329C 'post':307C,312C,474C,695C 'privat':109C,585C 'pull':106C,148C,256C,276C,290C,510C,588C,617C 'pull_service.createcodecomment':248C 'read':102C,319C,444C,464C 'recov':179C 'regular':100C,612C 'releas':434C,455C 'repli':93C,119C,121C,309C,326C,439C,477C,492C,501C,632C,635C 'replyreviewid':272C 'repo':314C 'repoid':230C,541C 'reponam':697C 'repositori':110C,129C,301C,355C,513C,570C,586C 'reproduc':178C 'request':107C,149C,257C,277C,291C,511C,515C,536C,589C,618C,690C 'request-control':535C 'respons':378C 'reus':479C 'reveal':353C 'review':126C,134C,202C,342C,367C,397C,399C,425C,490C,495C,572C,602C 'reviewid':214C,221C,526C,533C,534C 'rout':440C 'routers/web/web.go':701C 's3cr3t':183C,598C,666C 's3cr3t-of-the-victim':182C,597C,665C 'sequenti':346C 'services/pull/review.go':212C,520C 'set':175C,581C 'sha':141C,430C 'side':372C 'sign':98C 'signed-in':97C 'sinc':450C 'sit':703C 'status':379C 'still':459C 'store':136C,483C 'submit':117C,630C 'text':415C 'treepath':223C,544C,545C 'type':225C,546C 'ui':159C 'unbound':417C 'unrel':611C 'use':441C 'user':101C,613C,658C 'usernam':696C 'v1.14.0':436C 'v1.27.0':451C 'victim':186C,601C,669C,676C 'victim/private':189C,582C 'way':467C 'whatev':569C 'whose':120C,587C 'wide':349C 'wrong':389C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-11-15T21:03:06+00:00","kev":null,"cvss_vector":null,"cvss_by":null,"poc_count":0,"sources":[{"source":"ghsa-repo","external_id":"GHSA-wgx7-537g-xfrg","url":"https://github.com/go-gitea/gitea/security/advisories/GHSA-wgx7-537g-xfrg","severity":"high","published_at":"2026-11-15T21:03:06+00:00","modified_at":"2026-11-15T21:03:06+00:00","first_seen_at":"2026-11-15T21:12:48+00:00","fetched_at":"2026-11-15T21:12:48+00:00","note":null},{"source":"nvd","external_id":"CVE-2026-126338","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-126338","severity":null,"published_at":"2026-11-15T22:17:18+00:00","modified_at":"2026-11-15T22:17:18+00:00","first_seen_at":"2026-11-15T22:40:23+00:00","fetched_at":"2026-11-15T22:40:23+00:00","note":null}],"documents":[{"id":165575,"url":"https://github.com/go-gitea/gitea/security/advisories/GHSA-wgx7-537g-xfrg","title":"Maintainer's advisory: github.com","kind":"vendor","source":"ghsa-repo","publisher":"vendor","text":null,"published_at":"2026-11-15T21:03:06+00:00","relation":"advisory","confidence":null,"note":"Maintainer's advisory: github.com"},{"id":165694,"url":"https://github.com/go-gitea/gitea/releases/tag/v28.4.0","title":"Release notes: github.com","kind":"release","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Release notes: github.com"}],"disclosures":[],"exploit_sources":[],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}