CVE-2025-68942 Details
Description
Gitea before 1.22.2 allows XSS because the search input box (for creating tags and branches) is v-html instead of v-text.
A cross-site scripting (XSS) vulnerability has been identified in Gitea versions prior to 1.22.2. The issue arises because the search input box used for creating tags and branches improperly uses 'v-html', which allows for the injection of HTML, instead of 'v-text', which would sanitize the input. This flaw could be exploited by injecting malicious scripts into the search input, potentially leading to XSS attacks.
Users can upgrade to Gitea version 1.22.2 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Dec 26, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://blog.gitea.com/release-of-1.22.2/ | [email protected] | Release Notes |
| https://github.com/go-gitea/gitea/pull/31966 | [email protected] | Issue TrackingPatch |
| https://github.com/go-gitea/gitea/releases/tag/v1.22.2 | [email protected] | Release Notes |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| gitea gitea | < 1.22.2 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 13, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jan 2, 2026 | Initial Analysis | [email protected] |
| Dec 26, 2025 | New CVE Received | [email protected] |