Home / Gitea / Gitea / CVE-2025-68942
CVE-2025-68942: is it exploited, and which versions of Gitea are affected and fixed?
CVE-2025-68942 is a cross-site scripting (XSS) vulnerability in Gitea. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 09:08 UTC). Affected: code.gitea.io/gitea before 1.22.2 (GitHub advisory GHSA-898p-hh3p-hf9r). Fixed in 1.22.2 (GitHub advisory GHSA-898p-hh3p-hf9r). Severity: Medium (5.4, CVSS 3.1, from mitre).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 09:08 UTC, CVE record November 19, 2026, 07:09 UTC and NVD November 19, 2026, 07:14 UTC.
What is CVE-2025-68942?
Gitea before 1.22.2 allows XSS because the search input box (for creating tags and branches) is v-html instead of v-text.
From the CVE record by mitre, last updated December 26, 2025, 19:30 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Gitea | Gitea | before 1.22.2 | 1.22.2 |
As the CVE record by mitre states it, last updated December 26, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Go | code.gitea.io/gitea | < 1.22.2 | 1.22.2 | GHSA-898p-hh3p-hf9r |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated December 26, 2025. Summary: Gitea allows XSS because the search input box (for creating tags and branches) is v-html instead of v-text.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| gitea | gitea | before 1.22.2 | application |
NVD analysis (status Analyzed), last modified October 13, 2026, 10:10 UTC.
How severe is CVE-2025-68942?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 5.4 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N | mitre |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2025-68942 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, December 26, 2025)
- EPSS
- 0.27% probability of exploitation activity in the next 30 days, percentile 19.7 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-79 Improper Neutralization of Input During Web Page Generation
Where are the vendor advisories and references?
- https://blog.gitea.com/release-of-1.22.2/
- https://github.com/go-gitea/gitea/releases/tag/v1.22.2
- https://github.com/go-gitea/gitea/pull/31966
When was it published, and where is the official record?
- Reserved
- December 26, 2025
- Published
- December 26, 2025, 02:50 UTC
- CVE record updated
- December 26, 2025, 19:30 UTC by mitre
- NVD
- Analyzed, last modified October 13, 2026, 10:10 UTC
- Last checked
- CVE list November 19, 2026, 07:09 UTC; NVD November 19, 2026, 07:14 UTC; KEV December 3, 2026, 09:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Gitea?
- Aug 26, 2026CVE-2026-60004 Gitea: code injection (remote code execution) exploited
- Nov 15, 2026CVE-2026-129525 Gitea: missing authorization
- Nov 15, 2026CVE-2026-129341 Gitea: incorrect authorization
- Nov 15, 2026CVE-2026-129337 Gitea: missing authorization
- Nov 15, 2026CVE-2026-128365 Gitea: incorrect authorization
- Nov 15, 2026CVE-2026-128359 Gitea: session does not expire
- Nov 15, 2026CVE-2026-127958 Gitea: information disclosure
- Nov 15, 2026CVE-2026-126338 Gitea: authorization bypass through a user-controlled key (IDOR)
Questions about CVE-2025-68942
Is CVE-2025-68942 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 09:08 UTC. FIRST's EPSS gives it a 0.27% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Gitea are affected by CVE-2025-68942?
code.gitea.io/gitea before 1.22.2, per the GitHub advisory GHSA-898p-hh3p-hf9r. The tables above give every range the sources list.
Which version fixes CVE-2025-68942?
1.22.2, per the GitHub advisory GHSA-898p-hh3p-hf9r. Check the vendor's advisory before you rely on it.
How severe is CVE-2025-68942?
Medium (5.4, CVSS 3.1, from mitre). The severity table above shows each score with its source.
Where is the official record of CVE-2025-68942?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.