CVE-2026-144685: GitBucket through 4.48.0 Stored XSS via XHTML and XML Attachments
GitBucket through 4.48.0 contains a stored cross-site scripting vulnerability that allows authenticated users to execute JavaScript by uploading XHTML or XML attachments served inline. Attackers can attach an XHTML file to an issue or comment, served via the attached route as application/xhtml+xml, to run script in a victim's session and perform API actions as that user, including administrators.
Affected Software
Event History
Frequently Asked Questions
What access does an attacker need?
The attacker needs an authenticated GitBucket account and the ability to attach files to an issue or comment. Exploitation also requires a victim to view the malicious attachment.
Who is at risk if a malicious attachment is opened?
Any user whose session can access the GitBucket instance may be affected, including administrators. The injected script can perform API actions using the victim's session, with the victim's available permissions.
How can teams look for potential exploitation?
Review issue and comment attachments for XHTML or XML files, especially those accessed through the _attached route. The affected behavior serves XHTML attachments inline as application/xhtml+xml.
Which versions are identified as affected?
GitBucket through version 4.48.0 is identified as affected. No fixed version is provided in the available data.