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

CVE-2025-68946: Gitea vulnerable to Cross-site Scripting

December 26, 2025

In Gitea before 1.20.1, a forbidden URL scheme such as javascript: can be used for a link, aka XSS.

References

  • blog.gitea.com/release-of-1.20.1
  • github.com/advisories/GHSA-hq57-c72x-4774
  • github.com/go-gitea/gitea
  • github.com/go-gitea/gitea/pull/25960
  • github.com/go-gitea/gitea/releases/tag/v1.20.1
  • nvd.nist.gov/vuln/detail/CVE-2025-68946

Code Behaviors & Features

Detect and mitigate CVE-2025-68946 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.20.1

Fixed versions

  • 1.20.1

Solution

Upgrade to version 1.20.1 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-68946.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:45 +0000.