CVE-2026-2973

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in GitLab

Published Mar 25, 2026 CVSS 3.1 · 5.4 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

GitLab contains a flaw where entity‑encoded content inside Mermaid diagrams is not properly sanitized. An authenticated user who can add or edit a diagram can inject arbitrary JavaScript. If another user views the diagram, the script runs in the victim’s browser, allowing the attacker to execute code on the victim’s behalf.

Affected Systems

The vulnerability affects GitLab Community Edition and Enterprise Edition for all releases from version 17.7 up to—but not including—18.8.7, all 18.9 releases prior to 18.9.3, and the 18.10 release prior to 18.10.1. Upgrading to 18.8.7, 18.9.3, 18.10.1 or later removes the flaw.

Risk and Exploitability

The CVSS score of 5.4 indicates a moderate severity, and the EPSS score of less than 1% reflects a low likelihood of exploitation in the wild. The vulnerability does not appear in the CISA KEV catalog. Exploitation requires the attacker to have authenticated access to the GitLab instance and the ability to create or modify a Mermaid diagram that is subsequently viewed by other users.

Remediation

Vendor Solution

Upgrade to versions 18.8.7, 18.9.3, 18.10.1 or above.


OpenCVE Recommended Actions

  • Upgrade GitLab to version 18.8.7, 18.9.3, 18.10.1, or a later release where the issue is resolved.

Generated by OpenCVE AI on March 26, 2026 at 18:56 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
CPEs cpe:2.3:a:gitlab:gitlab:*:*:*:*:community:*:*:*
cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:*
cpe:2.3:a:gitlab:gitlab:18.10.0:*:*:*:community:*:*:*
cpe:2.3:a:gitlab:gitlab:18.10.0:*:*:*:enterprise:*:*:*
Type Values Removed Values Added
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.
Title Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in GitLab
First Time appeared Gitlab
Gitlab gitlab
Weaknesses CWE-79
CPEs cpe:2.3:a:gitlab:gitlab:*:*:*:*:*:*:*:*
Vendors & Products Gitlab
Gitlab gitlab
References
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
GitLab
Published
Updated
Mar 26, 2026, 5:24 PM
Reserved
Feb 22, 2026, 11:04 AM
Status
Analyzed
Published
Mar 25, 2026, 5:16 PM
Modified
Jun 17, 2026, 10:32 AM