CVE-2026-2973
Received Received - Intake

Cross-Site Scripting in GitLab Mermaid Diagram Rendering

Vulnerability report for CVE-2026-2973, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-03-25

Last updated on: 2026-03-26

Assigner: GitLab Inc.

Description

GitLab has remediated an issue in GitLab CE/EE affecting all versions from 17.7 before 18.8.7, 18.9 before 18.9.3, and 18.10 before 18.10.1 that could have allowed an authenticated user to execute arbitrary JavaScript in a user's browser due to improper sanitization of entity-encoded content in Mermaid diagrams.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-03-25
Last Modified
2026-03-26
Generated
2026-07-06
AI Q&A
2026-03-25
EPSS Evaluated
2026-07-05
NVD
EUVD

Affected Vendors & Products

Showing 6 associated CPEs
Vendor Product Version / Range
gitlab gitlab From 18.9.0 (inc) to 18.9.3 (exc)
gitlab gitlab 18.10.0
gitlab gitlab From 18.9.0 (inc) to 18.9.3 (exc)
gitlab gitlab 18.10.0
gitlab gitlab From 17.7.0 (inc) to 18.8.7 (exc)
gitlab gitlab From 17.7.0 (inc) to 18.8.7 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-79 The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability in GitLab CE/EE affects versions from 17.7 before 18.8.7, 18.9 before 18.9.3, and 18.10 before 18.10.1. It allows an authenticated user to execute arbitrary JavaScript in another user's browser. This happens because GitLab improperly sanitizes entity-encoded content in Mermaid diagrams, which can be exploited to inject malicious scripts.

Impact Analysis

The vulnerability can lead to cross-site scripting (XSS) attacks where an attacker can run arbitrary JavaScript in the context of another user's browser. This can result in unauthorized actions performed on behalf of the user, theft of sensitive information such as session tokens, or other malicious activities that compromise user security and privacy.

Mitigation Strategies

To mitigate this vulnerability, you should upgrade your GitLab CE/EE instance to a fixed version. Specifically, update to version 18.8.7 or later if you are using the 18.8 series, 18.9.3 or later if using the 18.9 series, or 18.10.1 or later if using the 18.10 series.

This vulnerability affects all versions from 17.7 before the fixed versions mentioned above and could allow an authenticated user to execute arbitrary JavaScript in a user's browser due to improper sanitization of entity-encoded content in Mermaid diagrams.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-2973. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart