S4E just found a critical-severity finding from cve-2022-27924 scanner
PlatformPlansPartners
Resources
ToolsBlogDocs
Sign Up →
medium·Product Based Web Vulnerabilities·Updated Feb 11, 2025

CVE-2024-6886 Scanner

CVE-2024-6886 Scanner - Cross-Site Scripting vulnerability in Gitea

Est. Time~10 seconds
Scan TypeSingle Scan
Targetsdomain, subdomain, ipv4
CostFree
3.1k
Times Used
continuous scan runs
5.9k
Continuously Checked
assets under CS
0
Vulnerabilities Found
confirmed findings
References
CVECVE-2024-6886
10.0
CVSScritical
Exploitable remotely over the internet · no authentication required.

Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') vulnerability in Gitea Gitea Open Source Git Server allows Stored XSS.This issue affects Gitea Open Source Git Server: 1.22.0.

Attack Vector
Network
Privileges Req.
None
User Interaction
None
Affected
Gitea Open Source Git Serverby Gitea
1.22.0
giteaby gitea
1.22.0
Updated Aug 22, 2026View on NVD →
Detail

Gitea is a self-hosted Git service providing an alternative to GitHub and GitLab. It is widely used by developers and organizations to manage source code repositories and collaborate on software development. Gitea includes features such as issue tracking, code review, and continuous integration support. It allows multiple users to work together while maintaining project security. Due to its web-based nature, Gitea is exposed to various security threats, including XSS attacks. Proper security controls must be enforced to prevent exploitation.

The Cross-Site Scripting (XSS) vulnerability in Gitea 1.22.0 allows attackers to inject malicious scripts into repositories. These scripts are stored on the server and later executed in the context of another user's session. Attackers can exploit this flaw to steal user credentials, perform unauthorized actions, or deface repositories. The vulnerability requires the attacker to have authentication credentials, making it an authenticated XSS attack. If exploited, this issue could compromise the integrity of Gitea-hosted projects. Organizations using the affected version should apply necessary security updates.

The vulnerability exists in the repository creation functionality, where user-supplied data is not properly sanitized. Attackers can craft malicious payloads in the repository description field, which gets executed when viewed by another user. The flaw can be exploited by submitting a specially crafted `description` parameter during repository creation. When an authenticated user accesses the repository, the malicious script executes in their browser. This issue arises due to the lack of proper input validation and output encoding. The vulnerability has been patched in later versions of Gitea.

Exploiting this vulnerability can lead to session hijacking, credential theft, and unauthorized actions on affected accounts. Attackers can manipulate repository pages to deceive users into executing unwanted actions. Sensitive information such as API tokens and authentication cookies may be stolen. If administrative users are targeted, attackers may gain control over the entire Gitea instance. In some cases, XSS attacks can be leveraged for further exploitation, including privilege escalation. Organizations should mitigate this risk by implementing proper security measures.

REFERENCES

Solution Advice
  • Upgrade Gitea to a version that patches the XSS vulnerability.
  • Implement input validation and sanitize user-supplied data before rendering it in the UI.
  • Use Content Security Policy (CSP) headers to restrict script execution.
  • Enable output encoding to prevent the execution of injected scripts.
  • Restrict user permissions to limit the impact of potential attacks.

Get AI-powered remediation steps tailored to your asset.

Try AI Solutions →

Check your infrastructure.
Right now.

11,000+ scanners. Free to start. No credit card required.