Cross-Site Scripting Vulnerability in Gitea by Gitea Team
CVE-2025-68942

5.4MEDIUM

Key Information:

Vendor

Gitea

Status
Vendor
CVE Published:
26 December 2025

What is CVE-2025-68942?

An XSS vulnerability has been identified in Gitea, affecting versions prior to 1.22.2. The issue arises from the improper handling of user input in the search box, specifically using v-html instead of v-text, which allows attackers to inject malicious scripts. This vulnerability can lead to unauthorized access and potential information compromise. Users are advised to upgrade to version 1.22.2 or later to mitigate this risk.

Affected Version(s)

Gitea 0 < 1.22.2

References

CVSS V3.1

Score:
5.4
Severity:
MEDIUM
Confidentiality:
Low
Integrity:
Low
Availability:
Low
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
Low
User Interaction:
Required
Scope:
Changed

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.
CVE-2025-68942 : Cross-Site Scripting Vulnerability in Gitea by Gitea Team