Kestrel
대시보드로 돌아가기
CVE-2026-58419HIGH· 7.5MITRENVDGHSA대응게시일: 2026. 07. 03.수정일: 2026. 07. 21.

Gitea: Notification API leaks private issue metadata after access revocation

Info-Disclosure

위협 신호 · CVSS · EPSS · KEV

정기 패치· 높은 악용 신호 없음
CVSS
7.5high

이론적 심각도 점수

EPSS
0.3%상위 77.9%

30일 내 악용 확률 예측

KEV
미등재

실측 악용 기록 없음

권장 대응 기한14일 이내CISA SSVC 기준

2주 이내 패치 — 우선 조치 대상

자동화 가능외부 노출· KEV 미등재 · 자동화 가능 · 부분 영향 · 외부 노출

CVSS 벡터 · 메트릭

악용 경로
공격 벡터네트워크
공격 복잡도낮음
필요 권한불필요
사용자 상호작용불필요
범위불변
영향
기밀성 영향높음
무결성 영향없음
가용성 영향없음
버전별 점수
CVSS 3.17.5HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

상세 설명

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:

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

    Response:

    text
    1404 Not Found
  7. User li requests:

    text
    1GET /api/v1/notifications?all=true
  8. User li requests:

    text
    1GET /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:

text
1{
2 "id": 14,
3 "repository": null,
4 "subject": {
5 "title": "private issue title",
6 "url": "http://localhost:3000/api/v1/repos/sun/private-repo/issues/1",
7 "latest_comment_url": "http://localhost:3000/api/v1/repos/sun/private-repo/issues/comments/24",
8 "html_url": "http://localhost:3000/sun/private-repo/issues/1",
9 "state": "open"
10 }
11}

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.

AI 심층 분석

공격 시나리오 · 재현 가능한 PoC 페이로드 · 즉시 적용 가능한 차단 패치를 한 번에 받아 보세요. 보안 운영팀이 그대로 점검·티켓팅에 쓸 수 있는 형태로 정리해 드립니다.