OSV 1.4.0 · github-reviewed · 修改于 2026-07-22 05:48
发布时间
2026-07-22 05:48
GitHub 审查时间
2026-07-22 05:48
NVD 发布时间
2026-07-04 05:17
源文件
advisories/github-reviewed/2026/07/GHSA-44qc-pgvp-wx7v/GHSA-44qc-pgvp-wx7v.json
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.
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:
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.
User sun creates a private repository and grants read access to user li.
User li subscribes to repository notifications.
User sun creates a private issue and adds a comment.
User li receives a notification (thread_id = 14).
User sun revokes li's repository access.
User li requests:
GET /api/v1/repos/sun/{repo}/issues/1
Response:
404 Not Found
User li requests:
GET /api/v1/notifications?all=true
User li requests:
GET /api/v1/notifications/threads/14
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"
}
}
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.
Affected Endpoints
GET /api/v1/notificationsGET /api/v1/notifications/threads/{id}Prerequisites
Impact
Tested Version