Skip to main content

GitBucket EUVDEUVD-2026-143978

| CVE-2026-144685 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-12-04 VulnCheck GHSA-32x6-89c5-2pvf
5.1
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to GitBucket instance
  2. Delivery
    Attach crafted XHTML to issue or comment
  3. Exploit
    Victim opens inline _attached link
  4. Execution
    Script runs in victim's session
  5. Impact
    Drive 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

GitBucket 0 ≤4.48.0

Affected Packages

euvd gitbucket no fix

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

Vendor (VulnCheck) PRIMARY 5.1 MEDIUM
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
vuln.today AI 5.4 MEDIUM

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.

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

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

EPSS Score
0.4%
Top 64% exploitable
Prevalence
Low
niche self-hosted Scala Git platform, limited enterprise footprint
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy