Skip to main content

GitLab CVE-2025-12716

HIGH
Cross-site Scripting (XSS) (CWE-79)
2025-12-11 cve@gitlab.com
8.7
CVSS 3.1 · Vendor: gitlab
View

Attack ChainAIDerived

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

  1. Access
    Authenticate as low-privilege GitLab user
  2. Delivery
    Create wiki page with malicious payload
  3. Exploit
    Victim opens the wiki page
  4. Execution
    Script runs in victim session
  5. Impact
    Perform unauthorized actions as victim

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

Exploitation requires an authenticated GitLab CE/EE user with permission to create or edit wiki pages (PR:L), who embeds malicious content into a wiki page; a separate victim user must then view that wiki page (UI:R) for the payload to execute in their session. The vendor notes the flaw triggers only 'under certain conditions,' which are not fully specified in the available data, so not every wiki-page scenario is necessarily exploitable. Limiting factors: attacker must already have a valid account and wiki write access, the targeted victim must navigate to the malicious page, and affected instances must be running unpatched versions in the 18.4.x/18.5.x/18.6.x ranges below the fixed releases (18.4.6, 18.5.4, 18.6.2).

Impact

Signals are mostly consistent and point to a genuine but conditional high-severity issue rather than a mass-exploitation emergency. The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N, 8.7) describes a network-reachable stored XSS requiring an authenticated attacker (PR:L) and victim interaction (UI:R), with a scope change (S:C) reflecting that injected script executes in another user's authenticated GitLab session - consistent with CWE-79 and the 'unauthorized actions on behalf of another user' language in the description. EPSS is low at 0.43% (35th percentile), and the vulnerability is NOT in CISA KEV, so there is no evidence of active or widespread exploitation. A HackerOne report (#3405832) is referenced, indicating responsible disclosure and likely private proof-of-concept, but no confirmed public exploit code is present in the provided data. Net assessment: this is a legitimate patch priority for GitLab operators because of the high confidentiality/integrity impact and account-takeover potential, but the authentication-plus-interaction requirement and low EPSS argue against treating it as an imminent, internet-wide threat. No signals directly conflict; the main uncertainty is exploit maturity (HackerOne disclosure vs. no public weaponized code).

Exploit ScenarioDerived

An authenticated low-privilege GitLab user who can create or edit wiki pages injects malicious content (stored XSS) into a wiki page in a project a higher-privileged user can access. When the victim views that wiki page (UI:R), the script runs in their authenticated session and performs actions on their behalf. No public exploit code is confirmed, though a HackerOne report suggests a private proof-of-concept exists.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.4% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Oct 14, 2026

Stored cross-site scripting in GitLab Community and Enterprise Edition wiki pages lets an authenticated user with wiki write access embed malicious content that executes in a victim's session when that victim views the page, enabling unauthorized actions on the victim's behalf. Affected instances are those running 18.4.x before 18.4.6, 18.5.x before 18.5.4, and 18.6.x before 18.6.2; the CVSS vector (PR:L/UI:R) confirms the attacker must be authenticated and the victim must interact with the crafted page, so exploitation is conditional rather than opportunistic. EPSS is only 0.43% (35th percentile) and no public exploit code has been identified at time of analysis, but the CVSS score of 8.7 reflects high confidentiality and integrity impact under a changed scope (S:C).

RemediationAI

Vendor-released patch: upgrade to GitLab 18.4.6, 18.5.4, or 18.6.2 depending on your maintenance line, as documented at https://about.gitlab.com/releases/2025/12/10/patch-release-gitlab-18-6-2-released/. Because the vector is PR:L/UI:R, the exposure is limited to authenticated users who hold wiki create/edit permissions and to victims who navigate to the poisoned page, so patching is straightforward with no data migration required. If immediate upgrade is not possible, compensating controls include restricting wiki edit permissions to a trusted subset of users, disabling the wiki feature on projects where it is not needed (side effect: loss of documentation collaboration), and monitoring for unexpected wiki page edits in audit/activity logs - none of these eliminate the flaw, they only shrink the pool of potential attacker accounts and targets. Security teams should also treat any pre-patch wiki content authored by untrusted users as suspect and review or purge it after upgrading. No public exploit code has been identified at time of analysis, so prioritized patching within normal high-severity cycles is appropriate rather than emergency response.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The root cause is CWE-79, improper neutralization of input during web page generation, i.e. cross-site scripting. GitLab's wiki feature stores user-authored markup that is later rendered to other users in the web UI; the flaw allowed crafted wiki content to escape sanitization and execute script in the browser of any user viewing the page. Because the impact is scope-changed (S:C) and targets the victim's authenticated GitLab session, the practical consequence is session-context abuse - performing actions as the victim rather than simply defacing a page. The CPE data confirms affected builds are the gitlab:gitlab community and enterprise editions, with three version ranges corresponding to the 18.4, 18.5, and 18.6 maintenance lines. The vendor description notes the issue triggers only 'under certain conditions,' meaning not every wiki page creation path is necessarily exploitable, which tempers the practical attack surface relative to the raw score. The reporting chain (GitLab internal issue 579548 and HackerOne report 3405832) indicates this was a coordinated disclosure resolved in the December 10, 2025 patch release.

Know when Gitlab 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 (gitlab) PRIMARY 8.7 HIGH
AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
vuln.today AI 8.7 HIGH

Authenticated wiki author (PR:L) injects stored XSS requiring a victim to view the page (UI:R); script runs in the victim's session (S:C) yielding high C/I, no availability impact.

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

Primary rating from Vendor (gitlab).

CVSS VectorVendor: gitlab

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
None

DescriptionCVE.org

GitLab has remediated an issue in GitLab CE/EE affecting all versions from 18.4 before 18.4.6, 18.5 before 18.5.4, and 18.6 before 18.6.2 that, under certain conditions could have allowed an authenticated user to perform unauthorized actions on behalf of another user by creating wiki pages with malicious content.

Executive ViewAI

Why It Matters

A stored cross-site scripting flaw in GitLab Community and Enterprise Edition wiki pages could let an authenticated user with wiki write access execute code in a colleague's browser session, effectively acting with that person's privileges across the platform. Because GitLab typically holds source code, CI/CD pipelines, and integration credentials for the engineering organization, a hijacked session can translate into unauthorized code changes, pipeline manipulation, or exposure of sensitive repositories. The issue affects organizations running GitLab 18.4.x, 18.5.x, or 18.6.x versions prior to their fixed releases, and no public exploit code has been identified at time of analysis.

Business Impact: Medium
Compensating Controls

No vendor-released patch identified at time of analysis; interim mitigations include restricting wiki write access to trusted users, removing or disabling the wiki feature on sensitive projects, reviewing and sanitizing existing wiki content, invalidating sessions and rotating credentials for any accounts suspected of compromise, and monitoring authenticated activity for anomalous wiki edits or actions performed on behalf of other users.

Threat Intelligence Overview

EPSS Score
0.4%
Top 65% exploitable
Prevalence
High
GitLab CE/EE is widely deployed enterprise DevOps/SCM software
Data Quality
3 sources
Confidence: Low

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 HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
Medium

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
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.

Affected Products (CPE)CVE.org

cpe:2.3:a:gitlab:gitlab:*:*:*:*:community:*:*:*
cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:*
cpe:2.3:a:gitlab:gitlab:*:*:*:*:community:*:*:*
cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:*
cpe:2.3:a:gitlab:gitlab:*:*:*:*:community:*:*:*
cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:*

More in Gitlab

View all
CVE-2021-22205 CRITICAL POC
10.0 Apr 23

An issue has been discovered in GitLab CE/EE affecting all versions starting from 11.9. Rated critical severity (CVSS 10

CVE-2023-7028 CRITICAL POC
10.0 Jan 12

An issue has been discovered in GitLab CE/EE affecting all versions from 16.1 prior to 16.1.6, 16.2 prior to 16.2.9, 16.

CVE-2021-22175 CRITICAL POC
9.8 Jun 11

When requests to the internal network for webhooks are enabled, a server-side request forgery vulnerability in GitLab af

CVE-2026-85706 CRITICAL POC
10.0 Sep 12

Unauthenticated arbitrary file read in GitLab CE/EE lets remote attackers retrieve files from the GitLab server via the

CVE-2026-97229 CRITICAL POC
10.0 Oct 13

Remote code execution in GitLab CE/EE (all versions from 19.2 before 19.2.8, 19.3 before 19.3.5, and 19.4 before 19.4.2)

CVE-2013-4490 MEDIUM POC
6.5 May 13

The SSH key upload feature (lib/gitlab_keys.rb) in gitlab-shell before 1.7.3, as used in GitLab 5.0 before 5.4.1 and 6.x

CVE-2022-2992 CRITICAL POC
9.9 Oct 17

A vulnerability in GitLab CE/EE affecting all versions from 11.10 prior to 15.1.6, 15.2 to 15.2.4, 15.3 to 15.3.2 allows

CVE-2024-45409 CRITICAL POC
9.8 Sep 10

The Ruby SAML library is for implementing the client side of a SAML authorization. Rated critical severity (CVSS 9.8), t

CVE-2026-110264 CRITICAL POC
10.0 Oct 22

Remote code execution in GitLab CE/EE can be triggered by a specially crafted regular expression processed through a vul

CVE-2026-87719 CRITICAL POC
9.9 Sep 12

Sensitive credential and configuration disclosure in GitLab Enterprise Edition allows an authenticated user with Duo Cha

CVE-2018-18843 CRITICAL POC
10.0 Dec 04

The Kubernetes integration in GitLab Enterprise Edition 11.x before 11.2.8, 11.3.x before 11.3.9, and 11.4.x before 11.4

CVE-2026-72867 CRITICAL POC
9.9 Aug 10

Authenticated command injection in Dokploy (self-hostable PaaS) versions 0.29.3 through 0.29.12 lets a low-privileged us

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