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-2025-13761

CVE-2025-13761: GitLab RCE Vulnerability

CVE-2025-13761 is a remote code execution vulnerability in GitLab CE/EE that allows unauthenticated attackers to execute arbitrary code in victims' browsers. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: March 18, 2026

CVE-2025-13761 Overview

A critical Cross-Site Scripting (XSS) vulnerability has been identified in GitLab CE/EE that allows unauthenticated attackers to execute arbitrary code within the context of an authenticated user's browser. This vulnerability affects GitLab versions 18.6 before 18.6.3 and 18.7 before 18.7.1, requiring only that a legitimate user visit a specially crafted webpage controlled by the attacker.

Critical Impact

Unauthenticated attackers can execute arbitrary JavaScript code in authenticated user sessions, potentially leading to account takeover, data theft, and unauthorized actions within GitLab repositories.

Affected Products

  • GitLab Community Edition (CE) versions 18.6 before 18.6.3
  • GitLab Enterprise Edition (EE) versions 18.6 before 18.6.3
  • GitLab Community Edition (CE) version 18.7.0
  • GitLab Enterprise Edition (EE) version 18.7.0

Discovery Timeline

  • 2026-01-07 - GitLab releases security patch in version 18.7.1
  • 2026-01-09 - CVE-2025-13761 published to NVD
  • 2026-01-22 - Last updated in NVD database

Technical Details for CVE-2025-13761

Vulnerability Analysis

This vulnerability is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation), commonly known as Cross-Site Scripting (XSS). The flaw enables attackers to inject malicious scripts that execute in the victim's browser session with full access to their authenticated GitLab context.

The attack requires user interaction—specifically, the victim must be tricked into visiting a malicious webpage. However, once successful, the attacker gains the ability to perform any action the authenticated user can perform, including accessing private repositories, modifying code, managing CI/CD pipelines, and potentially escalating privileges within the GitLab instance.

The scope of this vulnerability extends beyond the vulnerable component itself, as indicated by the changed scope designation in the vulnerability assessment. This means successful exploitation can impact resources beyond GitLab's security boundary, potentially affecting connected services and integrations.

Root Cause

The vulnerability stems from improper input validation and output encoding within GitLab's web interface. User-supplied input is not adequately sanitized before being rendered in the browser, allowing malicious JavaScript code to be injected and executed. This represents a fundamental failure in the application's defense against injection attacks, where untrusted data is processed without proper neutralization.

Attack Vector

The attack is network-based and requires no prior authentication. An attacker must craft a malicious webpage containing the exploit payload and convince an authenticated GitLab user to visit this page. The attack can be delivered through various social engineering vectors including phishing emails, malicious links in forums or chat applications, or compromised websites.

Once the victim visits the attacker-controlled page, the malicious script executes within the context of their authenticated GitLab session. This grants the attacker the ability to:

  • Access sensitive repository data and secrets
  • Modify source code and introduce backdoors
  • Manipulate CI/CD configurations
  • Create or delete projects and users (depending on victim privileges)
  • Exfiltrate authentication tokens for persistent access

For detailed technical information about the vulnerability mechanism, refer to the GitLab Issue Discussion and the HackerOne Security Report.

Detection Methods for CVE-2025-13761

Indicators of Compromise

  • Unusual outbound requests from GitLab user sessions to external domains
  • Unexpected changes to repositories, CI/CD pipelines, or user permissions without corresponding audit log entries from the affected user's normal patterns
  • Authentication tokens or API keys being accessed or created without user knowledge
  • Reports from users about unexpected actions being performed on their behalf

Detection Strategies

  • Monitor web application firewall (WAF) logs for XSS attack patterns targeting GitLab endpoints
  • Implement Content Security Policy (CSP) violation reporting to detect script injection attempts
  • Review GitLab audit logs for suspicious activities following user complaints about phishing or unusual behavior
  • Deploy browser-based security monitoring to detect unauthorized script execution

Monitoring Recommendations

  • Enable comprehensive audit logging in GitLab to track all user actions and API calls
  • Configure alerting for unusual patterns such as bulk repository access or permission changes
  • Monitor referrer headers in web server logs for traffic originating from suspicious external domains
  • Implement network-level monitoring to detect data exfiltration attempts from authenticated sessions

How to Mitigate CVE-2025-13761

Immediate Actions Required

  • Upgrade GitLab CE/EE to version 18.6.3 or 18.7.1 immediately
  • Review audit logs for any suspicious activity that may indicate prior exploitation
  • Notify users to be cautious of unsolicited links and to report any unusual account behavior
  • Consider implementing additional WAF rules to block common XSS attack patterns while patching is in progress

Patch Information

GitLab has released patched versions addressing this vulnerability. Organizations running affected versions should upgrade to GitLab 18.6.3 or 18.7.1 as soon as possible. The official patch release notes are available at the GitLab Release Patch Notes.

The patch addresses the improper input handling by implementing proper sanitization and output encoding to prevent malicious scripts from being executed in user browsers.

Workarounds

  • Implement strict Content Security Policy (CSP) headers to limit script execution sources
  • Deploy a Web Application Firewall (WAF) with XSS detection rules as a defense-in-depth measure
  • Educate users about phishing risks and the importance of not clicking on untrusted links while authenticated to GitLab
  • Consider restricting GitLab access to trusted networks while emergency patching is underway
bash
# Example: Add strict CSP headers in GitLab nginx configuration
# Edit /etc/gitlab/gitlab.rb and add:
nginx['custom_gitlab_server_config'] = "add_header Content-Security-Policy \"default-src 'self'; script-src 'self'; object-src 'none';\";"

# Reconfigure GitLab to apply changes
sudo gitlab-ctl reconfigure

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechGitlab

  • SeverityCRITICAL

  • CVSS Score9.6

  • EPSS Probability0.04%

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

  • HackerOne Security Report
  • Vendor Resources
  • GitLab Release Patch Notes
  • Related CVEs
  • CVE-2026-1868: GitLab AI Gateway RCE Vulnerability

  • CVE-2021-22205: GitLab CE/EE RCE Vulnerability

  • CVE-2022-2884: GitLab CE/EE RCE Vulnerability

  • CVE-2023-1708: GitLab CE/EE RCE 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