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: 8.1 High
EPSS: < 1% Very Low
KEV: No
Impact: Cross‑site request forgery allowing modification of repository topics by an authenticated administrator
Action: Apply Patch
AI Analysis

Impact

A vulnerability exists in Gitea where the POST endpoint /{owner}/{repo}/topics can be accessed without the sign‑in middleware that normally supplies cross‑origin protection. This omission means a request sent from a third‑party origin is not rejected. If a repository administrator is logged in and visits a malicious page that issues a POST to the vulnerable endpoint, the topics of the administrator’s repository can be altered. No other settings or administrative functions are reachable through this route, so the impact is limited to repository metadata.

Affected Systems

The flaw affects installations of Gitea that have not implemented the sign‑in middleware on the topics endpoint. The input data does not specify which releases contain the fix, so any Gitea deployment potentially lacking this protection is at risk.

Risk and Exploitability

The core weakness is a missing CSRF token check, marked by CWE-352, which allows an attacker to exploit a legitimate user’s authenticated session. The CVSS score of 8.1 indicates high severity, but the EPSS score of less than 1% suggests that exploit attempts are relatively rare. The vulnerability is not listed in CISA’s KEV catalog. The attack requires an administrator to visit a malicious web page; thus the overall risk is moderate, with potential disruption in repository visibility and automation that rely on topic labels.

Generated by OpenCVE AI on October 29, 2026 at 23:21 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to a Gitea release that includes sign‑in middleware on the /{owner}/{repo}/topics endpoint.
  • If an upgrade is not immediate, configure the web server to reject requests to /{owner}/{repo}/topics for unauthenticated users or add an explicit CSRF token check on that endpoint.
  • Ensure the Gitea instance enforces same‑origin policy or a CSRF token for all authenticated POST requests, and monitor topic changes for unauthorized modifications.

Generated by OpenCVE AI on October 29, 2026 at 23:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 29 Oct 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N'}


Tue, 20 Oct 2026 00:30:00 +0000

Type Values Removed Values Added
First Time appeared Gitea
Gitea gitea
Vendors & Products Gitea
Gitea gitea

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

cve-icon MITRE

Status: PUBLISHED

Assigner: Gitea

Published:

Updated: 2026-10-29T16:31:42.147Z

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

Link: CVE-2026-107618

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

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

Modified: 2026-10-29T17:17:59.070

Link: CVE-2026-107618

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-29T23:30:03Z

Weaknesses
  • CWE-352

    Cross-Site Request Forgery (CSRF)