Skip to content

Gitea: Notification API leaks private issue metadata after access revocation

High severity GitHub Reviewed Published Jul 1, 2026 in go-gitea/gitea • Updated Jul 21, 2026

Package

gomod code.gitea.io/gitea (Go)

Affected versions

< 1.26.3

Patched versions

1.26.4

Description

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:

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

    Response:

    404 Not Found
    
  7. User li requests:

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

    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.

References

@lunny lunny published to go-gitea/gitea Jul 1, 2026
Published by the National Vulnerability Database Jul 3, 2026
Published to the GitHub Advisory Database Jul 21, 2026
Reviewed Jul 21, 2026
Last updated Jul 21, 2026

Severity

High

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

EPSS score

Exploit Prediction Scoring System (EPSS)

This score estimates the probability of this vulnerability being exploited within the next 30 days. Data provided by FIRST.
(22nd percentile)

Weaknesses

Exposure of Sensitive Information to an Unauthorized Actor

The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. Learn more on MITRE.

CVE ID

CVE-2026-58419

GHSA ID

GHSA-44qc-pgvp-wx7v

Source code

Credits

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.