The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-2026-0752

CVE-2026-0752: GitLab Mermaid Sandbox XSS Vulnerability

CVE-2026-0752 is a cross-site scripting flaw in GitLab CE/EE that allows unauthenticated attackers to inject scripts into the Mermaid sandbox UI. This article covers technical details, affected versions, and mitigation.

Published: February 27, 2026

CVE-2026-0752 Overview

CVE-2026-0752 is a Cross-Site Scripting (XSS) vulnerability affecting GitLab Community Edition (CE) and Enterprise Edition (EE). The vulnerability exists in the Mermaid diagram rendering sandbox UI, where under certain circumstances, an unauthenticated attacker could inject arbitrary scripts. This flaw affects all GitLab versions from 16.2 before 18.7.5, 18.8 before 18.8.5, and 18.9 before 18.9.1.

Critical Impact

Unauthenticated attackers can inject malicious scripts into the Mermaid sandbox UI, potentially leading to session hijacking, credential theft, or unauthorized actions performed on behalf of authenticated users.

Affected Products

  • GitLab CE/EE versions from 16.2 to 18.7.4
  • GitLab CE/EE versions 18.8.0 to 18.8.4
  • GitLab CE/EE versions 18.9.0 before 18.9.1

Discovery Timeline

  • 2026-02-25 - CVE-2026-0752 published to NVD
  • 2026-02-25 - Last updated in NVD database

Technical Details for CVE-2026-0752

Vulnerability Analysis

This vulnerability is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation), commonly known as Cross-Site Scripting. The flaw resides in GitLab's Mermaid diagram rendering functionality, which provides a sandbox environment for displaying flowcharts, sequence diagrams, and other visual representations within GitLab issues, merge requests, and wiki pages.

The vulnerability allows unauthenticated users to craft malicious input that bypasses the Mermaid sandbox's input sanitization mechanisms. When this malicious content is rendered in a victim's browser, arbitrary JavaScript code executes within the context of the GitLab application. This can lead to session token theft, phishing attacks via UI manipulation, or performing actions as the authenticated user.

The network-based attack vector requires user interaction—a victim must view the page containing the malicious Mermaid diagram. However, the scope is changed, meaning the vulnerability can impact resources beyond the vulnerable component itself, potentially affecting other web origins or user sessions.

Root Cause

The root cause stems from insufficient input validation and output encoding within the Mermaid sandbox rendering component. The sandbox environment, designed to safely render user-supplied diagram markup, failed to properly sanitize certain character sequences or escape sequences under specific conditions. This allowed specially crafted Mermaid diagram syntax to break out of the sandbox context and inject executable script content into the rendered page.

Attack Vector

The attack leverages the network-accessible Mermaid diagram rendering feature in GitLab. An attacker can exploit this vulnerability by:

  1. Creating a GitLab issue, merge request comment, or wiki page containing a malicious Mermaid diagram
  2. The diagram syntax contains specially crafted escape sequences that bypass sanitization
  3. When another user views the content, the malicious script executes in their browser context
  4. The script can steal session cookies, redirect users to phishing pages, or perform actions on behalf of the victim

The vulnerability is particularly concerning because it can be exploited by unauthenticated users on GitLab instances that allow public access to certain projects or repositories. For detailed technical information, see the HackerOne Security Report.

Detection Methods for CVE-2026-0752

Indicators of Compromise

  • Unusual or obfuscated content within Mermaid diagram blocks in issues, merge requests, or wikis
  • JavaScript errors or unexpected script execution when viewing GitLab pages containing diagrams
  • Reports from users of unexpected browser behavior or redirects when viewing GitLab content
  • Suspicious session activity following user interaction with diagram-containing pages

Detection Strategies

  • Monitor GitLab application logs for unusual patterns in diagram rendering requests
  • Implement Content Security Policy (CSP) violation reporting to detect script injection attempts
  • Review recently created or modified issues and merge requests containing Mermaid diagrams for suspicious content
  • Deploy web application firewall (WAF) rules to detect common XSS payloads in request bodies

Monitoring Recommendations

  • Enable and review GitLab audit logs for unusual content creation patterns
  • Configure browser-side CSP reporting to capture attempted XSS exploitation
  • Monitor for abnormal user session behavior that may indicate session hijacking
  • Set up alerts for bulk creation of issues or comments containing diagram syntax

How to Mitigate CVE-2026-0752

Immediate Actions Required

  • Upgrade GitLab CE/EE to version 18.9.1, 18.8.5, or 18.7.5 depending on your release track
  • Review Content Security Policy headers to ensure script-src restrictions are properly configured
  • Audit existing issues, merge requests, and wiki pages for potentially malicious Mermaid diagrams
  • Consider temporarily restricting public access to projects until patching is complete

Patch Information

GitLab has released patched versions addressing this vulnerability. Organizations should upgrade to the following versions:

  • GitLab 18.9 track: Upgrade to 18.9.1 or later
  • GitLab 18.8 track: Upgrade to 18.8.5 or later
  • GitLab 18.7 track: Upgrade to 18.7.5 or later

For detailed patch information and upgrade instructions, refer to the GitLab Patch Release Notes. Additional technical details are available in the GitLab Issue Tracker Entry.

Workarounds

  • Implement strict Content Security Policy headers with restrictive script-src directives as a defense-in-depth measure
  • Temporarily disable Mermaid diagram rendering if the feature is not business-critical
  • Restrict project visibility to authenticated users only until patches can be applied
  • Deploy a web application firewall with XSS detection rules in front of GitLab instances
bash
# Example: Configure nginx to add CSP headers for GitLab
# Add to your GitLab nginx configuration
add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; object-src 'none'; frame-ancestors 'self';" always;

# Verify current GitLab version
gitlab-rake gitlab:env:info

# Upgrade GitLab (Omnibus installation)
apt-get update && apt-get install gitlab-ee=18.9.1-ee.0

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.04%

  • 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 Patch Release Notes

  • GitLab Issue Tracker Entry

  • HackerOne Security Report
  • Related CVEs
  • CVE-2026-2973: GitLab Mermaid Diagram XSS Vulnerability

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

  • CVE-2026-1282: GitLab XSS Vulnerability in Project Labels

  • CVE-2026-0595: GitLab HTML Injection XSS Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now 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