CVE-2025-68942: XSS
Gitea before 1.22.2 allows XSS because the search input box (for creating tags and branches) is v-html instead of v-text.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
go/code.gitea.io/giteato a version that resolves this vulnerability.Fixed in 1.22.2
Event History
Frequently Asked Questions
What is the severity of CVE-2025-68942?
CVE-2025-68942 has been classified as a medium severity vulnerability due to its potential for allowing XSS attacks.
How do I fix CVE-2025-68942?
To fix CVE-2025-68942, you should upgrade Gitea to version 1.22.2 or later.
What does CVE-2025-68942 affect?
CVE-2025-68942 affects Gitea versions prior to 1.22.2, specifically the search input box for creating tags and branches.
What type of vulnerability is CVE-2025-68942?
CVE-2025-68942 is an XSS vulnerability which can be exploited through search inputs.
Can CVE-2025-68942 be exploited remotely?
Yes, CVE-2025-68942 can be exploited remotely by attackers through crafted inputs in the search box.