vendor:
Gitea
by:
Mikail KOCADAĞ
4.1
CVSS
MEDIUM
HTML Injection and potentially Reflected XSS
79
CWE
Product Name: Gitea
Affected Version From: 1.24.0
Affected Version To: 1.24.0
Patch Exists: NO
Related CWE:
CPE: a:gitea:gitea:1.24.0
Platforms Tested: Windows 10, Linux Ubuntu 22.04
2025
Gitea 1.24.0 – HTML Injection
Gitea version 1.24.0 is susceptible to HTML Injection and potentially Reflected Cross-Site Scripting (XSS) through the 'description' parameter on the user settings page. The lack of proper sanitization of user-supplied HTML content allows malicious scripts to be executed in the user's browser, leading to potential attacks. An attacker can inject malicious HTML or JavaScript code into their profile description, which gets executed when saved, demonstrating the presence of the vulnerability.
Mitigation:
To mitigate this vulnerability, input validation and proper sanitization should be implemented to filter out any potentially malicious HTML or script content entered by users. Additionally, encoding user-supplied data before displaying it can help prevent successful exploitation.