GHSA-44QC-PGVP-WX7V

Vulnerability from github – Published: 2026-07-21 21:48 – Updated: 2026-07-21 21:48
VLAI
Summary
Gitea: Notification API leaks private issue metadata after access revocation
Details

Summary

An information disclosure issue in the Gitea Notification API allows users who have lost access to a private repository to continue accessing private issue or pull request information through existing notification threads. Although repository information is hidden after access revocation, the subject field remains accessible and continues to expose private metadata.

Details

CVE-2026-20800 was fixed in v1.25.4 to prevent users from accessing private repository information through notification APIs after their repository access had been revoked.

During testing on Gitea v1.26.2, the repository field in NotificationThread responses is correctly set to null after access revocation. However, the associated subject field remains available.

The exposed subject object may contain:

  • Private issue or pull request titles
  • Repository-related API and HTML URLs
  • Issue or pull request state
  • Latest comment URLs and comment identifiers

Additionally, the exposed notification data is not limited to historical information. If new comments are added to the issue or pull request while the notification remains unread, fields such as latest_comment_url and updated_at continue to change. As a result, a user whose repository access has been revoked can still observe ongoing issue or pull request activity through notification APIs.

The observed behavior suggests that access control is applied to the repository field but not consistently applied to the associated subject information.

PoC

Environment

  • Gitea v1.26.2
  • Private repository

Steps to Reproduce

  1. User sun creates a private repository and grants read access to user li.

  2. User li subscribes to repository notifications.

  3. User sun creates a private issue and adds a comment.

  4. User li receives a notification (thread_id = 14).

  5. User sun revokes li's repository access.

  6. User li requests:

http GET /api/v1/repos/sun/{repo}/issues/1

Response:

text 404 Not Found

  1. User li requests:

http GET /api/v1/notifications?all=true

  1. User li requests:

http GET /api/v1/notifications/threads/14

Observed Result

The notification is returned successfully. The repository field is null, but the subject field still contains private issue metadata.

Example:

{
  "id": 14,
  "repository": null,
  "subject": {
    "title": "private issue title",
    "url": "http://localhost:3000/api/v1/repos/sun/private-repo/issues/1",
    "latest_comment_url": "http://localhost:3000/api/v1/repos/sun/private-repo/issues/comments/24",
    "html_url": "http://localhost:3000/sun/private-repo/issues/1",
    "state": "open"
  }
}

Expected Result

Users who no longer have access to a repository should not receive private issue or pull request information through notification APIs. The subject field should be removed, redacted, or otherwise protected by the same access controls applied to the repository field.

Detailed PoC

https://anonymous.4open.science/r/Gitea_PoC-EC93/1_poc_notification_leak

Impact

Affected Endpoints

  • GET /api/v1/notifications
  • GET /api/v1/notifications/threads/{id}

Prerequisites

  • The user previously had legitimate access to the private repository.
  • The notification was received before repository access was revoked.

Impact

  • Disclosure of private issue or pull request titles.
  • Disclosure of repository information through notification URLs.
  • Disclosure of issue or pull request state.
  • Disclosure of comment activity metadata.
  • Continued visibility into issue or pull request activity after repository access has been revoked.

Tested Version

  • Confirmed on v1.26.2.
Show details on source website

{
  "affected": [
    {
      "database_specific": {
        "last_known_affected_version_range": "\u003c 1.26.3"
      },
      "package": {
        "ecosystem": "Go",
        "name": "code.gitea.io/gitea"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1.26.4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "aliases": [
    "CVE-2026-58419"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-200"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-07-21T21:48:05Z",
    "nvd_published_at": "2026-07-03T21:17:05Z",
    "severity": "HIGH"
  },
  "details": "# Summary\n\nAn information disclosure issue in the Gitea Notification API allows users who have lost access to a private repository to continue accessing private issue or pull request information through existing notification threads. Although repository information is hidden after access revocation, the `subject` field remains accessible and continues to expose private metadata.\n\n# Details\n\nCVE-2026-20800 was fixed in v1.25.4 to prevent users from accessing private repository information through notification APIs after their repository access had been revoked.\n\nDuring testing on Gitea v1.26.2, the `repository` field in `NotificationThread` responses is correctly set to `null` after access revocation. However, the associated `subject` field remains available.\n\nThe exposed `subject` object may contain:\n\n* Private issue or pull request titles\n* Repository-related API and HTML URLs\n* Issue or pull request state\n* Latest comment URLs and comment identifiers\n\nAdditionally, the exposed notification data is not limited to historical information. If new comments are added to the issue or pull request while the notification remains unread, fields such as `latest_comment_url` and `updated_at` continue to change. As a result, a user whose repository access has been revoked can still observe ongoing issue or pull request activity through notification APIs.\n\nThe observed behavior suggests that access control is applied to the `repository` field but not consistently applied to the associated `subject` information.\n\n# PoC\n\n## Environment\n\n* Gitea v1.26.2\n* Private repository\n\n## Steps to Reproduce\n\n1. User `sun` creates a private repository and grants read access to user `li`.\n\n2. User `li` subscribes to repository notifications.\n\n3. User `sun` creates a private issue and adds a comment.\n\n4. User `li` receives a notification (`thread_id = 14`).\n\n5. User `sun` revokes `li`\u0027s repository access.\n\n6. User `li` requests:\n\n   ```http\n   GET /api/v1/repos/sun/{repo}/issues/1\n   ```\n\n   Response:\n\n   ```text\n   404 Not Found\n   ```\n\n7. User `li` requests:\n\n   ```http\n   GET /api/v1/notifications?all=true\n   ```\n\n8. User `li` requests:\n\n   ```http\n   GET /api/v1/notifications/threads/14\n   ```\n\n## Observed Result\n\nThe notification is returned successfully. The `repository` field is `null`, but the `subject` field still contains private issue metadata.\n\nExample:\n\n```json\n{\n  \"id\": 14,\n  \"repository\": null,\n  \"subject\": {\n    \"title\": \"private issue title\",\n    \"url\": \"http://localhost:3000/api/v1/repos/sun/private-repo/issues/1\",\n    \"latest_comment_url\": \"http://localhost:3000/api/v1/repos/sun/private-repo/issues/comments/24\",\n    \"html_url\": \"http://localhost:3000/sun/private-repo/issues/1\",\n    \"state\": \"open\"\n  }\n}\n```\n\n## Expected Result\n\nUsers who no longer have access to a repository should not receive private issue or pull request information through notification APIs. The `subject` field should be removed, redacted, or otherwise protected by the same access controls applied to the `repository` field.\n\n## Detailed PoC\n\nhttps://anonymous.4open.science/r/Gitea_PoC-EC93/1_poc_notification_leak\n\n# Impact\n\n**Affected Endpoints**\n\n* `GET /api/v1/notifications`\n* `GET /api/v1/notifications/threads/{id}`\n\n**Prerequisites**\n\n* The user previously had legitimate access to the private repository.\n* The notification was received before repository access was revoked.\n\n**Impact**\n\n* Disclosure of private issue or pull request titles.\n* Disclosure of repository information through notification URLs.\n* Disclosure of issue or pull request state.\n* Disclosure of comment activity metadata.\n* Continued visibility into issue or pull request activity after repository access has been revoked.\n\n**Tested Version**\n\n* Confirmed on v1.26.2.",
  "id": "GHSA-44qc-pgvp-wx7v",
  "modified": "2026-07-21T21:48:05Z",
  "published": "2026-07-21T21:48:05Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/go-gitea/gitea/security/advisories/GHSA-44qc-pgvp-wx7v"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-58419"
    },
    {
      "type": "WEB",
      "url": "https://github.com/go-gitea/gitea/pull/38108"
    },
    {
      "type": "WEB",
      "url": "https://github.com/go-gitea/gitea/commit/9e84deb969aff5c1115c2984e41250f28c78451f"
    },
    {
      "type": "WEB",
      "url": "https://blog.gitea.com/release-of-1.26.3-and-1.26.4"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/go-gitea/gitea"
    },
    {
      "type": "WEB",
      "url": "https://github.com/go-gitea/gitea/releases/tag/v1.26.4"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Gitea: Notification API leaks private issue metadata after access revocation"
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Loading…