CVE-2026-58419: Gitea Notification API Leaks Private Issue Vulnerability

HIGH
Advisory Identifier: GHSA-44qc-pgvp-wx7v
CVSS 7.5
CWE-200
Published
Advisory Summary

CVE-2026-58419 is a HIGH (CVSS 7.5) notification api leaks private issue vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Gitea libraries in the Go ecosystem. The issue involves notification api leaks private issue metadata after access revocation. Remediation is available by upgrading affected packages to version 1.26.4.

CVE-2026-58419 at a Glance

CVE Identifier CVE-2026-58419
GHSA Identifier GHSA-44qc-pgvp-wx7v
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product Gitea
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2026-58419

To remediate this vulnerability, upgrade all affected Gitea dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

code.gitea.io/gitea fixed: 1.26.4
Upgrade code.gitea.io/gitea to 1.26.4
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for code.gitea.io/gitea

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-58419, inspect your project dependencies for Gitea:

inspect dependencies for code.gitea.io/gitea

Analyze the terminal output to locate any version of Gitea in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.26.4), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In Gitea, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

# 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 ``` 7. User `li` requests: ```http GET /api/v1/notifications?all=true ``` 8. 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: ```json { "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.

CVE-2026-58419 Affected Gitea Versions

1 component(s)
Fixed Versions:
1.26.4
Product / Package Ecosystem Affected Versions Fixed Version
code.gitea.io/gitea
Go
< 1.26.4
1.26.4

References

Frequently Asked Questions

What is CVE-2026-58419?
CVE-2026-58419 is a security vulnerability in Gitea involving Notification API leaks private issue metadata after access revocation under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which Gitea versions are affected?
Affected versions include releases prior to 1.26.4 across affected packages: code.gitea.io/gitea.
What version fixes CVE-2026-58419?
Upgrading to 1.26.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is code.gitea.io/gitea affected?
Yes, code.gitea.io/gitea is affected in releases prior to 1.26.4. Upgrade your dependency to 1.26.4 or later.
What is the CVSS score of CVE-2026-58419?
CVE-2026-58419 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2026-58419?
CVE-2026-58419 is classified under CWE-200: 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.).
How can I check Go dependencies for CVE-2026-58419?
Run the dependency tree command: 'inspect dependencies for code.gitea.io/gitea'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-44qc-pgvp-wx7v",
  "modified" : "2026-07-21T21:48:05Z",
  "published" : "2026-07-21T21:48:05Z",
  "aliases" : [ "CVE-2026-58419" ],
  "summary" : "Gitea: Notification API leaks private issue metadata after access revocation",
  "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`'s 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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "code.gitea.io/gitea"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.26.4"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "< 1.26.3"
    }
  } ],
  "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"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-07-21T21:48:05Z",
    "nvd_published_at" : "2026-07-03T21:17:05Z"
  }
}