Severity by source
AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Lifecycle Timeline
5DescriptionCVE.org
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.
AnalysisAI
This vulnerability is a stored cross-site scripting (XSS) flaw in GitLab's Mermaid diagram rendering that allows authenticated users to inject arbitrary JavaScript code into other users' browsers through improperly sanitized entity-encoded content. The vulnerability affects GitLab CE/EE versions 17.7 before 18.8.7, 18.9 before 18.9.3, and 18.10 before 18.10.1, with a CVSS score of 5.4 (medium severity). A public proof-of-concept exploit is available on HackerOne, indicating active awareness in the security community.
Technical ContextAI
The vulnerability exists in GitLab's Mermaid diagram parser, a popular JavaScript-based diagramming library used for rendering flowcharts, sequence diagrams, and other visual elements. The root cause is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation, aka Cross-site Scripting), which occurs when user-supplied input containing entity-encoded payloads is not properly sanitized before being rendered in the browser. Mermaid diagrams are processed server-side and embedded in web pages; the vulnerability arises from insufficient HTML entity decoding and escaping, allowing attackers to bypass sanitization filters by encoding malicious JavaScript within diagram syntax. The affected product is identified via CPE as cpe:2.3:a:gitlab:gitlab, with the flaw present across multiple major and minor versions of GitLab's Community and Enterprise editions.
RemediationAI
Immediately upgrade affected GitLab instances to version 18.10.1, 18.9.3, or 18.8.7 or later, depending on your current release track (see https://about.gitlab.com/releases/2026/03/25/patch-release-gitlab-18-10-1-released/). If immediate patching is not feasible, implement strict Content Security Policy (CSP) headers to restrict inline script execution and disable or restrict Mermaid diagram rendering in untrusted projects. Additionally, audit project documentation and merge requests for suspicious Mermaid diagram content, particularly those created or modified by external or newly-added collaborators. Enforce code review policies for documentation changes and consider temporarily disabling Mermaid rendering at the instance level until patches can be applied.
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.
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
An issue has been discovered in GitLab CE/EE affecting all versions starting from 11.9. Rated critical severity (CVSS 10
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
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
The Ruby SAML library is for implementing the client side of a SAML authorization. Rated critical severity (CVSS 9.8), t
A hardcoded password was set for accounts registered using an OmniAuth provider (e.g. Rated critical severity (CVSS 9.8)
An issue has been discovered in GitLab CE/EE affecting all versions starting from 12.10 before 14.6.5, all versions star
When requests to the internal network for webhooks are enabled, a server-side request forgery vulnerability in GitLab af
An issue has been discovered in GitLab CE/EE affecting all versions starting from 13.7.9 before 13.8.7, all versions sta
An issue was discovered in GitLab Omnibus 7.4 through 12.2.1. Rated critical severity (CVSS 9.8), this vulnerability is
An issue was discovered in GitLab Community and Enterprise Edition 9.x, 10.x, and 11.x before 11.5.8, 11.6.x before 11.6
Same weakness CWE-79 – Cross-site Scripting (XSS)
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-15809