Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2026-58440
Published:July 21, 2026
Updated:July 22, 2026
Affected product Gitea — "services/repository/collaboration.go" ("DeleteCollaboration") + webhook delivery Summary When a collaborator with admin permission on a private repo creates a webhook, that webhook keeps firing after the collaborator's access is revoked. Gitea's revocation cleanup "DeleteCollaboration" removes the collaboration record, recalculates accesses, drops watches, and unassigns issues — but it does not remove or disable webhooks the user created, and webhook delivery never re-checks whether the creator still has repo access. The former collaborator therefore receives the full payload (issue/comment bodies, commit data) of all future repository events at their controlled endpoint, indefinitely and invisibly. Affected code - "services/repository/collaboration.go" → "DeleteCollaboration()" — cleans watches/assignees only; no webhook cleanup. - Webhook delivery path — fires on repo events without re-validating the creator's current access. Steps to reproduce Using the provided reproduction materials: 1. Attacker (admin collaborator) creates a webhook → revoke access. 2. Control: "GET /api/v1/repos/admin/wh-repo" (attacker) → 404. 3. "GET .../hooks" → webhook still "active=true". 4. Admin creates a new issue after revocation → the catcher receives "action:"opened"", "issue.title:"CRITICAL SECRET: …"", "issue.body" (sentinel private key), "repository.private:true". (Runtime-confirmed on "gitea/gitea:1.25.4". Catcher is an internal sentinel listener; the payload is a planted sentinel, not real data; nothing is sent to any external/metadata endpoint.) Impact Authenticated former admin-collaborator → ongoing real-time exfiltration of private content created after revocation; invisible to the owner; scope crosses from the application boundary to data the user should no longer access. Suggested remediation 5. On revocation, delete/disable webhooks created by the removed collaborator (or hand them to the owner). 6. Re-validate the creator's current repo access before each webhook delivery. 7. At minimum, warn admins on revocation if the user created webhooks. Credit Reported as part of an incomplete-patch / authorization-residue measurement study (responsible disclosure).
Affected Packages
https://github.com/go-gitea/gitea.git (GITHUB):
Affected version(s) >=v0.9.99 <v1.27.0
Fix Suggestion:
Update to version v1.27.0
gitea.dev (GO):
Affected version(s) >=v0.9.99 <v1.27.0
Fix Suggestion:
Update to version v1.27.0
Do you need more information?
Contact Us
CVSS v4
Base Score:
8.2
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
HIGH
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
NONE
Vulnerable System Availability
NONE
Subsequent System Confidentiality
HIGH
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
6.8
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
HIGH
User Interaction
NONE
Scope
CHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
NONE
Weakness Type (CWE)
Incorrect Authorization