Description
`POST /{owner}/{repo}/topics` was registered without the sign-in middleware that provides the cross-origin protection, so a request issued by a third-party site was not rejected. A repository administrator who visited a malicious page could have the topics of their repository changed. No other repository settings were reachable through this route.
Published: 2026-10-18
Score: n/a
EPSS: n/a
KEV: No
Impact: Cross‑site request forgery allows a malicious site to alter repository topics of an administrator’s Gitea repository
Action: Apply Patch
AI Analysis

Impact

The vulnerability is a cross‑site request forgery that allowed a third‑party site to trigger a POST request to the /{owner}/{repo}/topics endpoint without proper sign‑in or cross‑origin protection. Consequently, a repository administrator who was logged in could have the topics of their repository silently altered by an attacker’s malicious page. The change merely affects the repository metadata and does not grant any other administrative or code‑execution capabilities.

Affected Systems

The flaw exists in Gitea, version at or before 28.2.0. The specific route /{owner}/{repo}/topics was unprotected in older releases, but the 28.2.0 security patch removes the vulnerability. Administrators using Gitea installations older than 28.2.0 are potentially impacted.

Risk and Exploitability

Without a CSRF token check or sign‑in middleware, the exploit relies on an authenticated user’s browser requesting the vulnerable endpoint from a malicious origin. An attacker can craft a benign webpage that triggers the change while the administrator mouses over or simply visits the page. The CVSS score is not reported, so the official severity is unclear; however, the EPSS is not available and the vulnerability is not listed in CISA’s KEV catalog. The risk is moderate because the attacker’s success requires the target user to be authenticated, and the impact is limited to topic metadata, yet the scenario remains significant for repositories that rely on precise topic labels for visibility or automation.

Generated by OpenCVE AI on October 18, 2026 at 20:51 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Gitea to version 28.2.0 or later to apply the patch that adds sign‑in middleware to the topics endpoint.
  • If upgrading is not immediately possible, block or restrict the /{owner}/{repo}/topics endpoint for unauthenticated users by configuring the web server or using Gitea configuration to enforce CSRF protection manually.
  • Ensure that your Gitea installation is configured with a strong CSRF token or same-origin policy, and monitor repository topic changes for unauthorized alterations.

Generated by OpenCVE AI on October 18, 2026 at 20:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sun, 18 Oct 2026 21:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-352

Sun, 18 Oct 2026 19:00:00 +0000

Type Values Removed Values Added
Description `POST /{owner}/{repo}/topics` was registered without the sign-in middleware that provides the cross-origin protection, so a request issued by a third-party site was not rejected. A repository administrator who visited a malicious page could have the topics of their repository changed. No other repository settings were reachable through this route.
Title Gitea cross-site request forgery on repository topics
References

Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: Gitea

Published:

Updated: 2026-10-18T18:56:53.428Z

Reserved: 2026-10-14T20:08:45.821Z

Link: CVE-2026-107618

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-18T19:16:32.807

Modified: 2026-10-18T19:16:32.807

Link: CVE-2026-107618

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-18T21:00:10Z

Weaknesses
  • CWE-352

    Cross-Site Request Forgery (CSRF)