Gitblit Reflected Cross-Site Scripting Vulnerability in Repository Path Handling

Vulnerability

A reflected cross-site scripting vulnerability has been identified in Gitblit version 1.7.1. This issue arises from inadequate input sanitization of repository path names, allowing attackers to inject malicious payloads that execute arbitrary JavaScript when victims access the altered URL. The vulnerability can be exploited by crafting a specific path injection, such as a JavaScript image payload, which is then executed in the context of the user's browser.

Impact

Exploitation of this vulnerability allows for reflected cross-site scripting, where an attacker can execute arbitrary JavaScript in the context of the victim's browser.

Reproduction

To reproduce this vulnerability, inject a crafted path payload into the repository name of a Gitblit URL. This can be done by replacing the repository name in the URL with one that includes the XSS payload, such as an image tag with an 'onerror' event. Accessing the modified URL will trigger the execution of the injected JavaScript.

Added: Aug 27, 2025, 4:23 PM
Updated: Aug 27, 2025, 5:42 PM

Vulnerability Rating

Custom Algorithm
spread
1.9
impact
5.4
exploitability
7.7
remediation
0.0
relevance
0.4
threat
6.4
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.