Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to GitBucket instance
-
DeliveryAttach crafted XHTML to issue or comment
-
ExploitVictim opens inline _attached link
-
ExecutionScript runs in victim's session
-
ImpactDrive authenticated API actions as admin
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The attacker must hold an authenticated GitBucket account with permission to create or comment on issues and attach files (PR:L) - instances with open self-service registration lower this bar significantly. The malicious XHTML/XML file is served inline via the _attached route with Content-Type application/xhtml+xml, which causes the browser to render it and execute embedded script; this inline-serving behavior is the default on affected versions through 4.48.0 and requires no special configuration. Exploitation is limited by requiring passive victim interaction (UI:P): a separate user - ideally an administrator for maximal impact - must actually open the attachment URL for the stored script to run in their session. It is further bounded by the authenticated-account prerequisite and by applying to GitBucket versions through 4.48.0 only. |
| Impact | This is a genuine but moderate-priority issue, not a drop-everything emergency. The CVSS 4.0 base score of 5.1 (medium) reflects the balancing factors: the attack is network-reachable (AV:N) and low-complexity (AC:L), but it requires an authenticated account with at least low privileges (PR:L) and passive victim interaction (UI:P) - a victim must open the attachment for the stored script to fire. Impact is limited (VC:L/VI:L) rather than total, though the scope-change metrics (SC:L/SI:L) correctly capture that script runs in another user's session and can drive authenticated API actions, including as administrators, which is the real sting of this flaw. No EPSS score was supplied, there is no CISA KEV listing, and the input contains no confirmed proof-of-concept or exploit-code reference (only a VulnCheck advisory and vendor source links), so there is no evidence of active or widespread exploitation. The vuln.today decision label is 'this_month', consistent with a patchable, credentialed, interaction-dependent stored XSS rather than an act_now/emergency item. The signals are internally consistent: medium severity, authenticated + interaction prerequisites, patch available, no exploitation telemetry - treat as a planned-remediation item, prioritizing instances with untrusted or self-service user registration where an attacker can easily obtain the required low-privilege account. |
| Exploit ScenarioDerived | An authenticated low-privilege user on a GitBucket instance attaches a crafted XHTML (or XML) file to an issue or comment; the _attached route serves it inline as application/xhtml+xml, so the browser renders it as a page and runs its embedded JavaScript. When another user - potentially an administrator - opens that attachment link, the script executes in their authenticated session and can perform API actions as them. No confirmed working exploit code is identified in the provided data, only a VulnCheck advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 04, 2026
Stored cross-site scripting in GitBucket through 4.48.0 lets an authenticated user who can open issues or post comments attach an XHTML or XML file that the server returns inline as application/xhtml+xml, so the browser parses it as a document and executes the embedded JavaScript inside the GitBucket origin. The payload fires when a second user opens the attachment link - an administrator gives the greatest payoff - and then runs with that victim's session, enabling API actions on their behalf. This is a genuine but moderate-priority issue rather than a drop-everything emergency: CVSS 4.0 scores it 5.1 (assessed CVSS 3.1 vector AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N), exploitation needs an authenticated account plus victim interaction, no public exploit code or confirmed active exploitation (CISA KEV) is identified at time of analysis, and an upstream fix has been published.
RemediationAI
The vendor has published an upstream fix as commit 95f7f268c2e4ea8372882e181a0334fb4dba5f6e (https://github.com/gitbucket/gitbucket/commit/95f7f268c2e4ea8372882e181a0334fb4dba5f6e); apply that commit in full or upgrade to a GitBucket release that contains it, as no patched release version is independently confirmed here. The commit changes FileUtil so text/html, text/xml, application/xml and all +xml subtypes except image/svg+xml are served as text/plain instead of being rendered inline, which neutralises the stored payloads already sitting in issue and comment attachments - but it also bundles unrelated changes (a servlet filter rejecting dot segments in request paths, LDAP search-filter escaping, and repository-name validation rejecting trailing dots), so cherry-picking only the MIME lines is riskier than taking the whole commit. Until the upgrade lands, the practical exposure controls are about who can plant a payload rather than about a documented configuration switch: close open self-service registration or restrict account creation so only trusted users can comment and attach files, which raises the PR:L prerequisite substantially but does not remove the risk from existing insiders; and warn users, particularly administrators, not to open _attached links from issues or comments they do not trust, which is unreliable as a sole control because the URL looks like any other GitBucket attachment link. There is no vendor-documented setting that forces attachments to download as text/plain on 4.48.0, so treat upgrading as the only complete fix.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
GitBucket is a self-hosted Git platform written in Scala on the Scalatra framework, and this is a CWE-79 stored cross-site scripting flaw rooted in how it types user-uploaded attachments rather than in its HTML templating. In 4.48.0, FileUtil.getMimeType (src/main/scala/gitbucket/core/util/FileUtil.scala, lines 27-36) derives the response Content-Type from the attachment filename and only downgraded text/html to text/plain, leaving text/xml, application/xml and XML-derived types such as application/xhtml+xml untouched. The issue/comment attachment route (_attached, reached from IssuesController.scala lines 483-492) then serves the stored file inline with that type, so a file the attacker controls becomes a same-origin active document with a full script context, able to read the victim's session cookies and anti-CSRF tokens and to drive the authenticated API. The upstream fix narrows the mapping so text/html, text/xml, application/xml and every +xml subtype other than image/svg+xml are served as text/plain; the same commit also carries unrelated hardening (a filter rejecting dot segments in request paths, RFC 4515 escaping of LDAP filter values, and validation rejecting repository names ending in a dot), so the attachment MIME change is one part of a broader patch rather than a single-line fix.
Know when Gitbucket gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
Authenticated low-priv attacker (PR:L) stores XHTML that a victim must open (UI:R); script executing in the victim's session crosses a trust boundary (S:C) with limited confidentiality and integrity impact and no availability effect.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
GitBucket 4.23.1 contains an unauthenticated remote code execution vulnerability that allows attackers to execute arbitr
Jenkins GitBucket Plugin 0.8 and earlier does not sanitize Gitbucket URLs on build views, resulting in a stored cross-si
GitBucket through 4.48.0 enforces only read access on two of its GitHub-compatible REST API routes - PATCH /api/v3/repos
Server-side request forgery in GitBucket up to version 4.46.1 allows authenticated users to coerce the application serve
EUVD-2026-143978
GHSA-32x6-89c5-2pvf
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB