CVE-2026-58443: Public-only token authorization bypass in Gitea pull request updates
CVE-2026-58443 is an incorrect authorization vulnerability in Gitea versions through 1.26.4 that allows repository tokens restricted to public repositories to indirectly modify private pull request head branches. The pull request update API validates the token's public-only restriction against the public base repository, but subsequently authorizes access to the private head repository using the token owner's ordinary permissions without reapplying the token restriction. Consequently, a public-only token with repository write scope can cause server-side merges or rebases of public base commits into a private head branch when its owner has write permission to that branch. The resulting push can also trigger private Gitea Actions workflows. The vulnerability is fixed in Gitea 1.27.0.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Exploitation bypasses the intended isolation of public-only tokens, allowing unauthorized changes to private repository branches despite direct private writes being prohibited for those tokens. This compromises repository integrity and can affect availability through unwanted changes or triggered automation. If Gitea Actions is enabled and a private workflow matches the resulting push event, exploitation can queue workflow runs and associated jobs. The flaw does not provide anonymous private repository access or independently grant permissions beyond the token owner's underlying account permissions.
Mitigation
If you can’t patch tonight, do this now.
Until patched, restrict pull request update capabilities and revoke public-only tokens with write:repository scope that could reach affected private branches. Audit public-to-private fork and pull request relationships, review affected tokens, and rotate potentially exposed credentials. Inspect private repository branch changes and Gitea Actions logs for unexpected pushes or push-triggered workflows following pull request updates through public base repositories. Token rotation alone does not correct the authorization flaw.
Remediation
Patch, then assume compromise.
Upgrade Gitea to version 1.27.0 or later, which fixes the authorization checks for private pull request head repositories.
Exploits
No public exploits tracked yet. Mallory keeps watching.
References
Frequently asked questions
- Is CVE-2026-58443 exploited in the wild?
- As of Nov 19, 2026, Mallory has no reports of CVE-2026-58443 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-58443?
- Yes. As of Nov 19, 2026, Mallory has reports of a public exploit for CVE-2026-58443.
- Is there a patch for CVE-2026-58443?
- Upgrade Gitea to version 1.27.0 or later, which fixes the authorization checks for private pull request head repositories.
- How severe is CVE-2026-58443?
- CVE-2026-58443 has a CVSS v3.1 score of 9.1 (Critical) and an EPSS score of 0.58% (42nd percentile) as of Nov 19, 2026.
Recent activity
12 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.