{"id":"CVE-2026-127958","kind":"vulnerability","aliases":["CVE-2026-127958","GHSA-859w-9wv7-c5x9"],"related":[],"title":"Pending reviews created via the API leak into the PR timeline and feeds","description":"A review that a reviewer starts through the REST API as a draft (`POST /repos/{owner}/{repo}/pulls/{index}/reviews` with `\"event\": \"PENDING\"` or with no `event`) is published immediately. Its body and line comments appear to everyone who can read the pull request, which on a public repository includes anonymous visitors. The reader cannot cause this and gains only read access to text the reviewer has not submitted. The disclosure happens whenever a reviewer uses the API's create-as-PENDING, submit-later flow, even if the draft is never submitted. Meanwhile Gitea tells the reviewer the review is `PENDING` and tells everyone else it does not exist.\n\n`CreatePullReview` (`routers/api/v1/repo/pull_review.go:563`) maps `PENDING`, an empty event or an unknown event to `ReviewTypePending` and still sends the review through `pull_service.SubmitReview`. `issues_model.SubmitReview` (`models/issues/review.go:549`) then creates the `CommentTypeReview` timeline comment without checking the review type, although it checks for the pending type a few lines earlier. The service layer fires the review and code-comment notifications, and the feed notifier copies the draft text into `comment_pull` activity entries and the repository's RSS/Atom feeds.\n\nThe reviews API and the diff view correctly hide the draft. However, the conversation page loads the linked review's code comments with a concrete review, which bypasses the pending filter in `comment_code.go`, and the issue timeline API returns the comment unfiltered. When the draft is later submitted, a second entry is added and the original draft text stays on the page. Deleting the draft does not remove the feed entries.\n\nThe attached reproducer runs a stock binary with default settings. A regular user with no rights on a public repository creates a PENDING review. An anonymous visitor then gets `[]` from the reviews API and no line comment in the diff view, but sees both the draft body and the line comment on the conversation page and the body in the timeline API. Drafts started in the web diff view are not affected. The behaviour dates from the introduction of the API review endpoints in c97494a4f4 (#11224), first released in v1.12.0-rc1.\n\n## Details\n\nScanned commit `31626de2a6cdd3e1fe93216e4ac80f511297f1e7`, default configuration. The reader who gains something is anyone able to view the pull request (an anonymous visitor on a public repository); the affected user is a reviewer who starts a review through the REST API.\n\nThe root cause is one missing check: `issues_model.SubmitReview` (`models/issues/review.go:549`) creates the public timeline comment, and `pull_service.SubmitReview` then fires the review notifications, for a review whose type stays `ReviewTypePending`. The API handler `CreatePullReview` is the only caller that passes that type. The draft then surfaces in several places that read timeline comments or notifications (conversation page, timeline API, activity feeds and RSS/Atom, notifications); they are all symptoms of that one write.\n\n`POST /api/v1/repos/{owner}/{repo}/pulls/{index}/reviews` with `\"event\": \"PENDING\"` (or with no `event`) returns `\"state\": \"PENDING\"`, and from that moment the review body and its line comments are shown to every reader of the pull request on `/{owner}/{repo}/pulls/{index}`, and the body is returned by `GET /api/v1/repos/{owner}/{repo}/issues/{index}/timeline`. At the same time `GET .../pulls/{index}/reviews` returns `[]` to those readers and the diff view `/{owner}/{repo}/pulls/{index}/files` does not show the line comment, because both treat the review as a draft that only its author may see.\n\nOn a fresh instance, with `reviewer` being a regular user without any rights on the public repository `owner/project`:\n\n```\nPOST /api/v1/repos/owner/project/pulls/1/reviews        (as reviewer)\n{\"event\": \"PENDING\", \"body\": \"DRAFT-REVIEW-BODY\",\n \"comments\": [{\"path\": \"feature.txt\", \"new_position\": 1, \"body\": \"DRAFT-LINE-COMMENT\"}]}\n  -> 200, \"state\": \"PENDING\"\n\nGET /api/v1/repos/owner/project/pulls/1/reviews         (anonymous) -> []\nGET /owner/project/pulls/1/files                        (anonymous) -> no DRAFT-LINE-COMMENT\nGET /owner/project/pulls/1                              (anonymous) -> contains DRAFT-REVIEW-BODY and DRAFT-LINE-COMMENT\nGET /api/v1/repos/owner/project/issues/1/timeline       (anonymous) -> entry of type \"review\" with body DRAFT-REVIEW-BODY\n```\n\nThe same happens for a pending review that has only line comments and no body, a request the API accepts since `dcef88a233` (\"fix(api): allow pending-inline-comment-only reviews (#39433)\").\n\n### Why\n\n`CreatePullReview` maps `PENDING`, an empty and any unknown `event` to `ReviewTypePending`, stores the line comments as pending, and then sends every review, pending or not, through the submit path:\n\n```go\n// routers/api/v1/repo/pull_review.go:704\n\tdefault:\n\t\treturn issues_model.ReviewTypePending, false\n…\n// routers/api/v1/repo/pull_review.go:562\n\t// create review and associate all pending review comments\n\treview, _, err := pull_service.SubmitReview(ctx, ctx.Doer, ctx.Repo.GitRepo, pr.Issue, reviewType, opts.Body, opts.CommitID, nil)\n```\n\n`issues_model.SubmitReview` creates or updates the `review` row with the requested type and then, whatever that type is, adds the timeline comment that announces the review:\n\n```go\n// models/issues/review.go:549\n\tcomm, err := CreateComment(ctx, &CreateCommentOptions{\n\t\tType:        CommentTypeReview,\n\t\tDoer:        doer,\n\t\tContent:     review.Content,\n\t\t…\n\t\tReviewID:    review.ID,\n```\n\nThe function does anticipate the pending type: a few lines earlier (`models/issues/review.go:541`) it tests `reviewType != ReviewTypePending` before clearing a leftover review request. The comment creation that follows has no such test.\n\nBack in `pull_service.SubmitReview` (`services/pull/review.go:338-354`) the same comment is handed to `notify_service.PullRequestReview` and each line comment to `notify_service.PullRequestCodeComment`, as for a submitted review. The feed notifier (`services/feed/notifier.go:207`) turns these into `comment_pull` actions carrying the draft text, which is where the activity-feed and RSS/Atom entries come from.\n\nSo a pending review created this way owns a `CommentTypeReview` comment, and nothing that reads timeline comments looks at the type of the linked review:\n\n- The conversation page renders the content of every `CommentTypeReview` comment (`routers/web/repo/issue_view.go:686`) and then loads the linked review's line comments with `comment.Review.LoadCodeComments(ctx)` (`routers/web/repo/issue_view.go:788`). That goes to `fetchCodeCommentsByReview(ctx, r.Issue, nil, r, false)` (`models/issues/review.go:162`), i.e. with a concrete review, and the pending filter only applies when no review is given:\n\n  ```go\n  // models/issues/comment_code.go:107\n  // If the review is pending only the author can see the comments (except if the review is set)\n  if review.ID == 0 && re.Type == ReviewTypePending &&\n  \t(currentUser == nil || currentUser.ID != re.ReviewerID) {\n  \tcontinue\n  }\n  ```\n\n  The template prints the entry like a submitted comment review (`templates/repo/issue/view_content/comments.tmpl:386-392`, type 0 falls into the `else` branch).\n- `ListIssueCommentsAndTimeline` returns every comment except `CommentTypeCode` (`routers/api/v1/repo/issue_comment.go:203`).\n\nThe places that do know about drafts hide this review: `ToPullReviewList` skips pending reviews of other users (`services/convert/pull_review.go:69`), `prepareSingleReview` answers 404 to other signed-in users (`routers/api/v1/repo/pull_review.go:730`), and the diff view loads comments through `FetchCodeComments` (`models/issues/comment_code.go:22`), which passes no review, so the filter above applies.\n\nNo other caller sends a pending review through `SubmitReview`. A draft started in the web diff view only calls `pull_service.CreateCodeComment(..., !form.SingleReview, ...)` (`routers/web/repo/pull_review.go:90-101`), which creates the pending `review` row and the code comment but no `CommentTypeReview` comment; the web submit form cannot produce the pending type (`services/forms/repo_form.go:486-498`); and the API's own submit endpoint refuses it (`routers/api/v1/repo/pull_review.go:642-646`, \"review stay pending\"). The notifiers are not written for it either: each such request logs `Unsupported review webhook type` from `services/webhook/notifier.go:760` and `services/actions/notifier.go:447`.\n\nThe behaviour dates back to the introduction of the API review endpoints in `c97494a4f4a0` (\"API: Add pull review endpoints (#11224)\", 2020-05-02), first released in v1.12.0-rc1.\n\n## Impact\n\nA reviewer who prepares a review through the API in the create-as-`PENDING`, submit-later flow (`POST .../reviews`, then `POST .../reviews/{id}`; the project's own integration test creates such a review with the body `\"draft\"`) has the review body and all line comments disclosed to everyone who can read the pull request, before submitting and even if the draft is never submitted. When the draft is later submitted, a second timeline entry is created and the first one, with the original draft body, stays on the page, so wording the reviewer changed before submitting remains published. On a public repository that includes anonymous visitors. Any signed-in user who can read the pull request can be in the reviewer's position; no write access is involved.\n\nBesides the conversation page and the timeline API, the following was observed on the same instance: the repository activity feed (`GET /api/v1/repos/owner/project/activities/feeds`, anonymous) and the reviewer's profile feed contain `comment_pull` entries with excerpts of the draft body and of the line comment, and the pull request's author receives a notification. The same entries are served anonymously as RSS/Atom (`/owner/project.rss`, `/owner/project.atom`, `/reviewer.rss`). From source, `mailNotifier.PullRequestReview` (`services/mailer/notify.go:98`) also mails the comment to participants; mail was not exercised here because no mailer is available offline.\n\nThree further consequences were observed by hand on a fresh default instance (stock binary, anonymous reader); they are not part of `repro`:\n\n- Every further `PENDING` request by the same reviewer adds another timeline entry. After two `PENDING` calls and one `POST .../reviews/{id}` the timeline API returned three `review` entries for the one review.\n- Once a reviewer has made one such `PENDING` call, line comments they later add with \"Start review\" in the web diff view go into that same pending review and also appear on the conversation page while still unsubmitted. They do not reach the feeds, because the web path does not notify.\n- `DELETE .../reviews/{id}` on the draft removes it from the conversation page and the timeline API, but the activity-feed and RSS/Atom entries carrying the draft text stay.\n\nThe reader gains nothing beyond read access to text the reviewer had not published, cannot cause the disclosure themselves, and cannot modify anything. The reviewer gets no hint from the API, which reports the review as `PENDING` to them and as non-existent to others.\n\n## Suggested fix\n\nThe attached patch stops creating the timeline comment (and stops notifying) for a review that stays pending. The comment is created later when the review is really submitted: both `SubmitPullReview` and a second `CreatePullReview` with a final event call `SubmitReview` again, which picks up the existing pending review, so the review is published exactly once.\n\n- `models/issues/review.go`: `SubmitReview` commits and returns `(review, nil)` right after creating or updating the review row when `reviewType == ReviewTypePending`, before the `CreateComment(... CommentTypeReview ...)` call.\n- `services/pull/review.go`: `SubmitReview` returns right after the model call for `ReviewTypePending`, so it neither dereferences the absent comment nor fires `PullRequestReview` / `PullRequestCodeComment` for a draft, matching the existing NOTICE in `CreateCodeComment`.\n\nThe only caller that can pass `ReviewTypePending` is `routers/api/v1/repo/pull_review.go:563`, which ignores the returned comment; the web submit form cannot produce the pending type and `SubmitPullReview` rejects it.\n\nThe patch adds two regression tests, both failing on the scanned commit: `TestSubmitReviewPending` in `models/issues/review_test.go` (no `CommentTypeReview` row for a pending review, one after submitting it) and `TestAPIPullReviewPendingNotOnTimeline` in `tests/integration/api_pull_review_test.go` (the draft body and line comment are absent from the timeline API and the conversation page while pending, and the submitted body and the line comment are present after `POST .../reviews/{id}` with `\"event\": \"COMMENT\"`).\n\nThe change does not remove `CommentTypeReview` rows that already exist for pending reviews; those stay visible until the review is deleted, and, as described under Impact, a stale draft entry also stays after the review is submitted. A follow-up could remove them in a migration, or have the readers (`prepareIssueViewCommentsAndSidebarParticipants`, `ListIssueCommentsAndTimeline`) skip review comments whose review is still pending and belongs to someone else, so drafts leaked before the upgrade stop being shown. Activity-feed entries already written for drafts are not touched either.\n\nOne behaviour change may be worth a changelog note: a client that posts a review without `event` and relied on it showing up now gets a really hidden draft, with no timeline entry, notifications or feed entries, until it submits the review or sends `\"event\": \"COMMENT\"`.\n\n## Suggested patch\n\n```diff\ndiff --git a/models/issues/review.go b/models/issues/review.go\nindex bb1541df2e..b43161aed7 100644\n--- a/models/issues/review.go\n+++ b/models/issues/review.go\n@@ -546,6 +546,11 @@ func SubmitReview(ctx context.Context, doer *user_model.User, issue *Issue, revi\n \t\t}\n \t}\n \n+\t// a pending review is only visible to its reviewer, the timeline comment is created when it gets submitted\n+\tif reviewType == ReviewTypePending {\n+\t\treturn review, nil, committer.Commit()\n+\t}\n+\n \tcomm, err := CreateComment(ctx, &CreateCommentOptions{\n \t\tType:        CommentTypeReview,\n \t\tDoer:        doer,\ndiff --git a/models/issues/review_test.go b/models/issues/review_test.go\nindex 0f074f7edb..426b830450 100644\n--- a/models/issues/review_test.go\n+++ b/models/issues/review_test.go\n@@ -355,6 +355,32 @@ func TestSubmitReviewClearsStaleReviewRequest(t *testing.T) {\n \tassert.NotNil(t, comment)\n }\n \n+func TestSubmitReviewPending(t *testing.T) {\n+\tassert.NoError(t, unittest.PrepareTestDatabase())\n+\n+\tissue := unittest.AssertExistsAndLoadBean(t, &issues_model.Issue{ID: 3})\n+\tassert.NoError(t, issue.LoadRepo(t.Context()))\n+\tassert.NoError(t, issue.Repo.LoadOwner(t.Context()))\n+\treviewer := unittest.AssertExistsAndLoadBean(t, &user_model.User{ID: 1})\n+\n+\t// a review that stays pending is a draft only visible to the reviewer (e.g. created by the API),\n+\t// it must not get a timeline comment until it is submitted\n+\treview, comment, err := issues_model.SubmitReview(t.Context(), reviewer, issue, issues_model.ReviewTypePending, \"draft\", \"\", false, nil)\n+\tassert.NoError(t, err)\n+\tassert.Nil(t, comment)\n+\tassert.Equal(t, issues_model.ReviewTypePending, review.Type)\n+\tassert.Equal(t, \"draft\", review.Content)\n+\tunittest.AssertNotExistsBean(t, &issues_model.Comment{Type: issues_model.CommentTypeReview, ReviewID: review.ID})\n+\n+\t// submitting the pending review creates the timeline comment\n+\tsubmitted, comment, err := issues_model.SubmitReview(t.Context(), reviewer, issue, issues_model.ReviewTypeComment, \"looks good\", \"\", false, nil)\n+\tassert.NoError(t, err)\n+\tassert.Equal(t, review.ID, submitted.ID)\n+\tassert.Equal(t, issues_model.ReviewTypeComment, submitted.Type)\n+\tassert.NotNil(t, comment)\n+\tunittest.AssertExistsAndLoadBean(t, &issues_model.Comment{ID: comment.ID, Type: issues_model.CommentTypeReview, ReviewID: review.ID})\n+}\n+\n func TestAddReviewRequest(t *testing.T) {\n \tassert.NoError(t, unittest.PrepareTestDatabase())\n \ndiff --git a/services/pull/review.go b/services/pull/review.go\nindex 3d42330637..e1e337e2cd 100644\n--- a/services/pull/review.go\n+++ b/services/pull/review.go\n@@ -335,6 +335,11 @@ func SubmitReview(ctx context.Context, doer *user_model.User, gitRepo *git.Repos\n \t\treturn nil, nil, err\n \t}\n \n+\t// NOTICE: if it's a pending review there is no timeline comment yet and the notifications will not be fired until user submit review.\n+\tif reviewType == issues_model.ReviewTypePending {\n+\t\treturn review, nil, nil\n+\t}\n+\n \tmentions, err := issues_model.FindAndUpdateIssueMentions(ctx, issue, doer, comm.Content)\n \tif err != nil {\n \t\treturn nil, nil, err\ndiff --git a/tests/integration/api_pull_review_test.go b/tests/integration/api_pull_review_test.go\nindex d5c8a4b41b..cd046944f3 100644\n--- a/tests/integration/api_pull_review_test.go\n+++ b/tests/integration/api_pull_review_test.go\n@@ -551,6 +551,58 @@ func TestAPIPullReviewStayDismissed(t *testing.T) {\n \t\tpullIssue.ID, user8.ID, 2, 0, 3, false)\n }\n \n+func TestAPIPullReviewPendingNotOnTimeline(t *testing.T) {\n+\t// a pending review created by the API is a draft only visible to its reviewer,\n+\t// it must not appear on the pull request timeline before it is submitted\n+\tdefer tests.PrepareTestEnv(t)()\n+\tpullIssue := unittest.AssertExistsAndLoadBean(t, &issues_model.Issue{ID: 3})\n+\trequire.NoError(t, pullIssue.LoadAttributes(t.Context()))\n+\trepo := unittest.AssertExistsAndLoadBean(t, &repo_model.Repository{ID: pullIssue.RepoID})\n+\tsession := loginUser(t, \"user2\")\n+\ttoken := getTokenForLoggedInUser(t, session, auth_model.AccessTokenScopeWriteRepository)\n+\n+\treviewsURL := fmt.Sprintf(\"/api/v1/repos/%s/%s/pulls/%d/reviews\", repo.OwnerName, repo.Name, pullIssue.Index)\n+\ttimelineURL := fmt.Sprintf(\"/api/v1/repos/%s/%s/issues/%d/timeline\", repo.OwnerName, repo.Name, pullIssue.Index)\n+\ttimelineReviewBodies := func() []string {\n+\t\tbodies := []string{}\n+\t\tfor _, c := range DecodeJSON(t, MakeRequest(t, NewRequest(t, http.MethodGet, timelineURL), http.StatusOK), []*api.TimelineComment{}) {\n+\t\t\tif c.Type == issues_model.CommentTypeReview.String() {\n+\t\t\t\tbodies = append(bodies, c.Body)\n+\t\t\t}\n+\t\t}\n+\t\treturn bodies\n+\t}\n+\n+\treq := NewRequestWithJSON(t, http.MethodPost, reviewsURL, &api.CreatePullReviewOptions{\n+\t\tEvent:    \"PENDING\",\n+\t\tBody:     \"draft body\",\n+\t\tComments: []api.CreatePullReviewComment{{Path: \"README.md\", Body: \"draft line comment\", NewLineNum: 1}},\n+\t}).AddTokenAuth(token)\n+\treview := DecodeJSON(t, MakeRequest(t, req, http.StatusOK), &api.PullReview{})\n+\tassert.EqualValues(t, \"PENDING\", review.State)\n+\tassert.Equal(t, 1, review.CodeCommentsCount)\n+\n+\tunittest.AssertNotExistsBean(t, &issues_model.Comment{Type: issues_model.CommentTypeReview, ReviewID: review.ID})\n+\tassert.NotContains(t, timelineReviewBodies(), \"draft body\")\n+\tresp := MakeRequest(t, NewRequest(t, http.MethodGet, fmt.Sprintf(\"%s/pulls/%d\", repo.Link(), pullIssue.Index)), http.StatusOK)\n+\tassert.NotContains(t, resp.Body.String(), \"draft body\")\n+\tassert.NotContains(t, resp.Body.String(), \"draft line comment\")\n+\n+\t// submitting the review puts it on the timeline\n+\treq = NewRequestWithJSON(t, http.MethodPost, fmt.Sprintf(\"%s/%d\", reviewsURL, review.ID), &api.SubmitPullReviewOptions{\n+\t\tEvent: \"COMMENT\",\n+\t\tBody:  \"submitted body\",\n+\t}).AddTokenAuth(token)\n+\treview = DecodeJSON(t, MakeRequest(t, req, http.StatusOK), &api.PullReview{})\n+\tassert.EqualValues(t, \"COMMENT\", review.State)\n+\n+\tunittest.AssertExistsAndLoadBean(t, &issues_model.Comment{Type: issues_model.CommentTypeReview, ReviewID: review.ID})\n+\tassert.Contains(t, timelineReviewBodies(), \"submitted body\")\n+\tresp = MakeRequest(t, NewRequest(t, http.MethodGet, fmt.Sprintf(\"%s/pulls/%d\", repo.Link(), pullIssue.Index)), http.StatusOK)\n+\tassert.Contains(t, resp.Body.String(), \"submitted body\")\n+\tassert.Contains(t, resp.Body.String(), \"draft line comment\")\n+}\n+\n func testAPIPullReviewCommentReply(t *testing.T) {\n \tpullIssue := unittest.AssertExistsAndLoadBean(t, &issues_model.Issue{ID: 3})\n \trequire.NoError(t, pullIssue.LoadRepo(t.Context()))\n\n```\n\n\n_Reported by the Anthropic OSS scanner, finding ANT-2026-JD60OX63 (scan gitea-20261022-004), commit 31626de2a6cdd3e1fe93216e4ac80f511297f1e7._","summary":"Gitea publishes a pending pull request review created through the REST API to everyone who can read the pull request, including anonymous visitors on public repositories. An attacker gets read access to draft review text and line comments the reviewer had not submitted, and the text also appears in activity feeds and RSS/Atom.","severity":"low","cvss":null,"epss":null,"exploited":false,"exploited_at":null,"products":[{"name":"gitea.dev","fixed":["28.4.0"],"affected":">= 1.12, <= 28.3.0","ecosystem":"go"}],"ecosystems":["go"],"tags":["cwe-200","gitea","package","pull-requests","rest-api","self-hosted"],"not_affected_if":["managed-hosting-patched","no-public-repos","web-diff-only-reviews"],"how_to_check":"- Check the Gitea version with `gitea --version` and compare it against the affected range `>= 1.12, <= 28.3.0`.\n- On a public repository, call `GET /api/v1/repos/{owner}/{repo}/issues/{index}/timeline` anonymously and look for entries of type `review` created by a PENDING review.\n- Check the repository feed `GET /api/v1/repos/{owner}/{repo}/activities/feeds` for `comment_pull` entries tied to unsubmitted reviews.","fix":"- Gitea `28.4.0` (fixed version for the affected range listed in the sources).","status":"open","published_at":"2026-11-15T21:03:21+00:00","first_seen_at":"2026-11-15T21:12:46+00:00","triaged_at":"2026-11-15T21:14:14+00:00","updated_at":"2026-11-15T21:14:14+00:00","category":"package","confidence":0.85,"triage":{"at":"2026-11-15T21:14:14Z","model":"claude-haiku-5-5","output":{"fix":"- Gitea `28.4.0` (fixed version for the affected range listed in the sources).","reach":"internet","title":"Gitea: API draft reviews leak their body and line comments publicly","impact":"low","summary":"Gitea publishes a pending pull request review created through the REST API to everyone who can read the pull request, including anonymous visitors on public repositories. An attacker gets read access to draft review text and line comments the reviewer had not submitted, and the text also appears in activity feeds and RSS/Atom.","audience":"developers","category":"package","nicknames":[],"who_cares":["gitea","self-hosted","pull-requests","rest-api"],"confidence":0.85,"fix_status":"available","needs_auth":"yes","worst_case":"Anonymous readers see unsubmitted draft review text and line comments","analyst_note":"","how_to_check":"- Check the Gitea version with `gitea --version` and compare it against the affected range `>= 1.12, <= 28.3.0`.\n- On a public repository, call `GET /api/v1/repos/{owner}/{repo}/issues/{index}/timeline` anonymously and look for entries of type `review` created by a PENDING review.\n- Check the repository feed `GET /api/v1/repos/{owner}/{repo}/activities/feeds` for `comment_pull` entries tied to unsubmitted reviews.","plain_action":"","product_name":"","needs_analyst":false,"not_affected_if":["web-diff-only-reviews","managed-hosting-patched","no-public-repos"],"who_is_affected":"Self-hosted or hosted Gitea instances with public repositories where users start pull request reviews through the REST API using the PENDING or empty event. Instances that only use the web diff view for drafts are not affected, and private repositories are exposed only to users who can already read them.","user_interaction":"no","product_ecosystem":"","needs_special_setup":"no","severity_if_unknown":"unknown"},"cost_usd":0.001217,"input_tokens":8829,"output_tokens":668,"severity_before":"low"},"analyst_status":null,"analyst_note":null,"search":"'-127958':16A,24A '-200':27B '-2026':15A,23A '/api/v1/repos':552C,600C '/api/v1/repos/owner/project/pulls/1/reviews':666C '/files':626C '/issues':603C '/pulls':109C,555C,591C,611C,624C '/repos':106C '/reviews':111C,557C,613C '/timeline':605C '1':681C '11224':435C '200':687C '31626de2a6cdd3e1fe93216e4ac80f511297f1e7':443C '549':226C,489C '563':205C '859w':19A '9wv7':20A 'abl':453C 'access':69B,153C 'activ':88B,271C,538C 'add':331C 'affect':421C,467C 'also':85B 'although':238C 'anonym':60B,142C,375C,460C 'anyon':452C 'api':6A,35B,50B,101C,169C,281C,316C,382C,411C,430C,479C,510C,537C 'appear':86B,127C 'attach':351C 'attack':66B 'author':644C 'behaviour':423C 'binari':356C 'bodi':123C,396C,407C,574C,595C,671C,675C,682C 'bypass':306C 'c5x9':21A 'c97494a4f4':434C 'caller':516C 'cannot':146C 'caus':147C,482C 'check':234C,240C,486C 'code':257C,299C 'code-com':256C 'comment':76B,126C,232C,258C,269C,300C,319C,386C,400C,494C,531C,578C,632C,676C,686C 'comment_code.go':311C 'commenttypereview':230C 'commit':442C 'concret':303C 'configur':445C 'convers':292C,403C,534C 'copi':264C 'correct':286C 'creat':3A,46B,172C,228C,370C,490C 'create-as-pend':171C 'createpullreview':203C,512C 'cve':14A,22A 'cwe':26B 'date':424C 'default':358C,444C 'delet':341C 'detail':440C 'diff':284C,389C,417C,620C 'disclosur':162C 'draft':71B,104C,182C,266C,289C,323C,335C,343C,395C,412C,522C,640C,673C,684C 'draft-line-com':683C 'draft-review-bodi':672C 'earlier':248C 'els':198C 'empti':209C 'endpoint':432C 'entri':272C,329C,349C 'even':179C 'event':113C,118C,210C,214C,559C,564C,669C 'everi':582C 'everyon':52B,129C,197C 'exist':202C 'feature.txt':678C 'feed':13A,89B,262C,278C,348C,539C 'filter':309C 'fire':252C,498C 'first':436C 'flow':178C 'fresh':649C 'gain':150C,449C 'get':67B,378C,599C,610C 'ghsa':18A 'ghsa-859w-9wv7-c5x9':17A 'gitea':28B,39B,187C 'gitea.dev':25A 'handler':511C 'happen':163C 'hide':287C 'host':38B 'howev':290C 'immedi':121C 'includ':59B,141C 'index':110C,556C,592C,604C,612C,625C 'instanc':650C 'introduct':427C 'issu':314C 'issues_model.submitreview':224C,487C 'later':177C,325C 'layer':251C 'leak':7A 'line':75B,125C,247C,385C,399C,577C,631C,685C 'link':296C 'load':294C 'map':206C 'may':645C 'meanwhil':186C 'miss':485C 'models/issues/review.go':225C,488C 'moment':571C 'never':184C 'new':679C 'notif':259C,501C,533C,542C 'notifi':263C 'one':484C,549C 'origin':334C 'owner':107C,553C,589C,601C,622C 'owner/project':664C 'packag':29B 'page':293C,340C,404C,535C 'pass':518C 'path':677C 'pend':1A,42B,114C,174C,194C,207C,243C,308C,372C,560C,567C,670C,689C 'place':527C 'posit':680C 'post':105C,551C,665C 'pr':10A 'public':63B,139C,368C,464C,492C,662C 'publish':40B,120C 'pull':31B,43B,57B,134C,270C,457C,586C 'pull-request':30B 'pull_service.submitreview':223C,496C 'read':55B,68B,132C,152C,529C 'reader':145C,447C,583C,617C 'regular':361C,655C 'releas':437C 'remov':346C 'repo':108C,554C,590C,602C,623C 'repositori':64B,140C,275C,369C,465C,663C 'reproduc':352C 'request':32B,44B,58B,135C,458C,587C 'rest':34B,49B,100C,478C 'rest-api':33B 'return':317C,565C,597C,614C 'review':2A,45B,72B,78B,93C,96C,157C,166C,190C,192C,221C,236C,254C,280C,297C,304C,373C,381C,431C,471C,475C,500C,504C,573C,637C,652C,668C,674C 'reviewtypepend':216C,508C 'right':365C,659C 'root':481C 'routers/api/v1/repo/pull_review.go':204C 'rss/atom':91B,277C,541C 'run':353C 'scan':441C 'second':328C 'see':392C,646C 'self':37B 'self-host':36B 'send':219C 'servic':250C 'set':359C 'sever':526C 'show':629C 'shown':580C 'someth':450C 'start':97C,413C,473C 'state':566C,688C 'stay':337C,507C 'still':218C 'stock':355C 'submit':81B,160C,176C,185C,326C 'submit-lat':175C 'surfac':524C 'symptom':546C 'tell':188C,196C 'text':73B,84B,155C,267C,336C 'time':609C 'timelin':11A,231C,315C,410C,493C,530C,536C 'treat':635C 'type':237C,244C,506C,520C 'unfilt':320C 'unknown':213C 'use':167C 'user':362C,468C,656C 'v1.12.0-rc1':439C 'via':4A 'view':285C,390C,418C,455C,621C 'visitor':61B,143C,376C,461C 'web':416C 'whenev':164C 'whose':505C 'without':233C,657C 'write':550C","nicknames":[],"mitigations":[],"who_affected":"Self-hosted or hosted Gitea instances with public repositories where users start pull request reviews through the REST API using the PENDING or empty event. Instances that only use the web diff view for drafts are not affected, and private repositories are exposed only to users who can already read them.","tier":"C","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"developers","plain_action":null,"pkeys":["giteadev"],"ptokens":["dev","gitea"],"labels":["cwe200","gitea","go","low","package","pullrequests","restapi","selfhosted"],"campaign_type":null,"search_a":"'-127958':16A,24A '-2026':15A,23A '859w':19A '9wv7':20A 'api':6A 'c5x9':21A 'creat':3A 'cve':14A,22A 'feed':13A 'ghsa':18A 'ghsa-859w-9wv7-c5x9':17A 'gitea.dev':25A 'leak':7A 'pend':1A 'pr':10A 'review':2A 'timelin':11A 'via':4A","search_b":"'-200':27B 'access':69B 'activ':88B 'also':85B 'anonym':60B 'api':35B,50B 'appear':86B 'attack':66B 'comment':76B 'creat':46B 'cwe':26B 'draft':71B 'everyon':52B 'feed':89B 'get':67B 'gitea':28B,39B 'host':38B 'includ':59B 'line':75B 'packag':29B 'pend':42B 'public':63B 'publish':40B 'pull':31B,43B,57B 'pull-request':30B 'read':55B,68B 'repositori':64B 'request':32B,44B,58B 'rest':34B,49B 'rest-api':33B 'review':45B,72B,78B 'rss/atom':91B 'self':37B 'self-host':36B 'submit':81B 'text':73B,84B 'visitor':61B","search_c":"'/api/v1/repos':552C,600C '/api/v1/repos/owner/project/pulls/1/reviews':666C '/files':626C '/issues':603C '/pulls':109C,555C,591C,611C,624C '/repos':106C '/reviews':111C,557C,613C '/timeline':605C '1':681C '11224':435C '200':687C '31626de2a6cdd3e1fe93216e4ac80f511297f1e7':443C '549':226C,489C '563':205C 'abl':453C 'access':153C 'activ':271C,538C 'add':331C 'affect':421C,467C 'although':238C 'anonym':142C,375C,460C 'anyon':452C 'api':101C,169C,281C,316C,382C,411C,430C,479C,510C,537C 'appear':127C 'attach':351C 'author':644C 'behaviour':423C 'binari':356C 'bodi':123C,396C,407C,574C,595C,671C,675C,682C 'bypass':306C 'c97494a4f4':434C 'caller':516C 'cannot':146C 'caus':147C,482C 'check':234C,240C,486C 'code':257C,299C 'code-com':256C 'comment':126C,232C,258C,269C,300C,319C,386C,400C,494C,531C,578C,632C,676C,686C 'comment_code.go':311C 'commenttypereview':230C 'commit':442C 'concret':303C 'configur':445C 'convers':292C,403C,534C 'copi':264C 'correct':286C 'creat':172C,228C,370C,490C 'create-as-pend':171C 'createpullreview':203C,512C 'date':424C 'default':358C,444C 'delet':341C 'detail':440C 'diff':284C,389C,417C,620C 'disclosur':162C 'draft':104C,182C,266C,289C,323C,335C,343C,395C,412C,522C,640C,673C,684C 'draft-line-com':683C 'draft-review-bodi':672C 'earlier':248C 'els':198C 'empti':209C 'endpoint':432C 'entri':272C,329C,349C 'even':179C 'event':113C,118C,210C,214C,559C,564C,669C 'everi':582C 'everyon':129C,197C 'exist':202C 'feature.txt':678C 'feed':262C,278C,348C,539C 'filter':309C 'fire':252C,498C 'first':436C 'flow':178C 'fresh':649C 'gain':150C,449C 'get':378C,599C,610C 'gitea':187C 'handler':511C 'happen':163C 'hide':287C 'howev':290C 'immedi':121C 'includ':141C 'index':110C,556C,592C,604C,612C,625C 'instanc':650C 'introduct':427C 'issu':314C 'issues_model.submitreview':224C,487C 'later':177C,325C 'layer':251C 'line':125C,247C,385C,399C,577C,631C,685C 'link':296C 'load':294C 'map':206C 'may':645C 'meanwhil':186C 'miss':485C 'models/issues/review.go':225C,488C 'moment':571C 'never':184C 'new':679C 'notif':259C,501C,533C,542C 'notifi':263C 'one':484C,549C 'origin':334C 'owner':107C,553C,589C,601C,622C 'owner/project':664C 'page':293C,340C,404C,535C 'pass':518C 'path':677C 'pend':114C,174C,194C,207C,243C,308C,372C,560C,567C,670C,689C 'place':527C 'posit':680C 'post':105C,551C,665C 'public':139C,368C,464C,492C,662C 'publish':120C 'pull':134C,270C,457C,586C 'pull_service.submitreview':223C,496C 'read':132C,152C,529C 'reader':145C,447C,583C,617C 'regular':361C,655C 'releas':437C 'remov':346C 'repo':108C,554C,590C,602C,623C 'repositori':140C,275C,369C,465C,663C 'reproduc':352C 'request':135C,458C,587C 'rest':100C,478C 'return':317C,565C,597C,614C 'review':93C,96C,157C,166C,190C,192C,221C,236C,254C,280C,297C,304C,373C,381C,431C,471C,475C,500C,504C,573C,637C,652C,668C,674C 'reviewtypepend':216C,508C 'right':365C,659C 'root':481C 'routers/api/v1/repo/pull_review.go':204C 'rss/atom':277C,541C 'run':353C 'scan':441C 'second':328C 'see':392C,646C 'send':219C 'servic':250C 'set':359C 'sever':526C 'show':629C 'shown':580C 'someth':450C 'start':97C,413C,473C 'state':566C,688C 'stay':337C,507C 'still':218C 'stock':355C 'submit':160C,176C,185C,326C 'submit-lat':175C 'surfac':524C 'symptom':546C 'tell':188C,196C 'text':155C,267C,336C 'time':609C 'timelin':231C,315C,410C,493C,530C,536C 'treat':635C 'type':237C,244C,506C,520C 'unfilt':320C 'unknown':213C 'use':167C 'user':362C,468C,656C 'v1.12.0-rc1':439C 'view':285C,390C,418C,455C,621C 'visitor':143C,376C,461C 'web':416C 'whenev':164C 'whose':505C 'without':233C,657C 'write':550C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-11-15T21:03:21+00:00","kev":null,"cvss_vector":null,"cvss_by":null,"poc_count":0,"sources":[{"source":"ghsa-repo","external_id":"GHSA-859w-9wv7-c5x9","url":"https://github.com/go-gitea/gitea/security/advisories/GHSA-859w-9wv7-c5x9","severity":"low","published_at":"2026-11-15T21:03:21+00:00","modified_at":"2026-11-15T21:03:21+00:00","first_seen_at":"2026-11-15T21:12:46+00:00","fetched_at":"2026-11-16T01:44:53+00:00","note":null},{"source":"nvd","external_id":"CVE-2026-127958","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-127958","severity":null,"published_at":"2026-11-15T22:17:19+00:00","modified_at":"2026-11-15T22:17:19+00:00","first_seen_at":"2026-11-15T22:40:23+00:00","fetched_at":"2026-11-15T22:40:24+00:00","note":null}],"documents":[{"id":165560,"url":"https://github.com/go-gitea/gitea/security/advisories/GHSA-859w-9wv7-c5x9","title":"Maintainer's advisory: github.com","kind":"vendor","source":"ghsa-repo","publisher":"vendor","text":null,"published_at":"2026-11-15T21:03:21+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"}