Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. code.gitea.io/gitea
  4. ›
  5. CVE-2025-68942

CVE-2025-68942: Gitea allows XSS because the search input box (for creating tags and branches) is v-html instead of v-text

December 26, 2025

Gitea before 1.22.2 allows XSS because the search input box (for creating tags and branches) is v-html instead of v-text.

References

  • blog.gitea.com/release-of-1.22.2
  • github.com/advisories/GHSA-898p-hh3p-hf9r
  • github.com/go-gitea/gitea
  • github.com/go-gitea/gitea/pull/31966
  • github.com/go-gitea/gitea/releases/tag/v1.22.2
  • nvd.nist.gov/vuln/detail/CVE-2025-68942

Code Behaviors & Features

Detect and mitigate CVE-2025-68942 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.22.2

Fixed versions

  • 1.22.2

Solution

Upgrade to version 1.22.2 or above.

Impact 5.4 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

go/code.gitea.io/gitea/CVE-2025-68942.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 04 Feb 2026 00:36:10 +0000.