A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-12029

CVE-2025-12029: GitLab Swagger UI XSS Vulnerability

CVE-2025-12029 is a cross-site scripting vulnerability in GitLab CE/EE Swagger UI that allows unauthenticated attackers to inject malicious scripts and perform unauthorized actions. This article covers technical details, affected versions, impact, and mitigation strategies.

Updated: May 19, 2026

CVE-2025-12029 Overview

GitLab patched a Cross-Site Scripting (XSS) vulnerability in GitLab Community Edition (CE) and Enterprise Edition (EE) that allowed unauthenticated attackers to inject malicious external scripts into the Swagger UI component. The flaw affects all versions from 15.11 before 18.4.6, 18.5 before 18.5.4, and 18.6 before 18.6.2. Successful exploitation allows attackers to perform unauthorized actions on behalf of another user. The weakness is classified as [CWE-79] Improper Neutralization of Input During Web Page Generation.

Critical Impact

An unauthenticated attacker can hijack authenticated user sessions and execute actions in the victim's context by injecting external scripts into the Swagger UI rendering path.

Affected Products

  • GitLab Community Edition (CE) versions 15.11 through 18.4.5
  • GitLab Enterprise Edition (EE) versions 18.5 through 18.5.3
  • GitLab CE/EE versions 18.6 through 18.6.1

Discovery Timeline

  • 2025-12-10 - GitLab releases patched versions 18.6.2, 18.5.4, and 18.4.6
  • 2025-12-11 - CVE-2025-12029 published to NVD
  • 2025-12-23 - Last updated in NVD database

Technical Details for CVE-2025-12029

Vulnerability Analysis

The vulnerability resides in GitLab's Swagger UI integration. Swagger UI renders OpenAPI documentation interactively within GitLab. The component fails to properly neutralize user-controllable input, allowing attackers to inject external JavaScript references into the rendered page. When an authenticated user accesses a crafted URL, the injected script executes in the browser under the GitLab origin.

Because the scope is changed (S:C in the CVSS vector), the injected script can affect resources beyond the vulnerable component itself. This includes the victim's authenticated GitLab session, repositories, and API tokens accessible from the browser. The attacker does not need credentials to craft the malicious payload, but a victim must interact with the link for exploitation to succeed.

Root Cause

The root cause is improper input neutralization in the Swagger UI configuration handling path. GitLab passed externally controllable parameters into the Swagger UI initialization without sufficient validation. This permitted reference to external script URLs, which Swagger UI then loaded and executed inside the GitLab document context.

Attack Vector

The attack vector is network-based with required user interaction. An attacker hosts a malicious JavaScript payload on an attacker-controlled server. The attacker then distributes a crafted GitLab URL that references the external script via the Swagger UI integration. When a logged-in GitLab user visits the link, the browser fetches and executes the attacker's script under the GitLab session, enabling session hijacking, CSRF-like actions, and data exfiltration.

No verified public proof-of-concept code is available. Refer to the HackerOne Security Report and the GitLab Issue Discussion for additional technical context.

Detection Methods for CVE-2025-12029

Indicators of Compromise

  • HTTP requests to GitLab Swagger UI endpoints containing external URLs in query parameters, particularly references to .js files on untrusted domains
  • Browser console errors or content security policy violations originating from /api/v4/ documentation routes
  • Unexpected outbound requests from user browsers to attacker-controlled domains following GitLab page loads
  • API token usage or repository modifications from sessions that visited unusual Swagger UI URLs

Detection Strategies

  • Inspect web server and reverse proxy logs for GitLab requests containing suspicious query string parameters referencing external JavaScript resources
  • Deploy a strict Content Security Policy (CSP) in report-only mode to surface script-src violations on Swagger UI paths
  • Correlate user session activity with referrer headers pointing to non-GitLab origins prior to sensitive API actions

Monitoring Recommendations

  • Monitor GitLab audit logs for unauthorized actions performed shortly after user clicks on external links
  • Alert on personal access token creation or SSH key additions following anomalous Swagger UI navigation
  • Track DNS resolution from internal users to newly registered domains referenced in GitLab traffic

How to Mitigate CVE-2025-12029

Immediate Actions Required

  • Upgrade self-managed GitLab installations to version 18.6.2, 18.5.4, or 18.4.6 depending on your release branch
  • Audit personal access tokens, SSH keys, and recent project activity for unauthorized modifications since November 2025
  • Inform GitLab users to avoid clicking GitLab links from untrusted sources until patching is verified

Patch Information

GitLab released patched versions 18.6.2, 18.5.4, and 18.4.6 on December 10, 2025. GitLab.com SaaS instances were patched by the vendor. See the GitLab Patch Release Announcement for upgrade instructions and full release notes.

Workarounds

  • No official workaround is published by GitLab; upgrading is the recommended remediation path
  • Apply a restrictive Content Security Policy at the reverse proxy layer to block execution of scripts from non-GitLab origins
  • Restrict access to Swagger UI documentation endpoints via network ACLs where the feature is not required
bash
# Configuration example - upgrade GitLab Omnibus to a patched release
sudo apt-get update
sudo apt-get install gitlab-ce=18.6.2-ce.0
sudo gitlab-ctl reconfigure
sudo gitlab-ctl restart

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechGitlab

  • SeverityHIGH

  • CVSS Score8.0

  • EPSS Probability0.09%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityHigh
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • GitLab Issue Discussion

  • HackerOne Security Report
  • Vendor Resources
  • GitLab Patch Release Announcement
  • Related CVEs
  • CVE-2026-7481: GitLab EE Stored XSS Vulnerability

  • CVE-2026-7377: GitLab EE XSS Vulnerability

  • CVE-2026-6335: GitLab CE/EE XSS Vulnerability

  • CVE-2026-6073: GitLab Enterprise Edition XSS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English