CVE-2026-0752
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedGitLab has remediated an issue in GitLab CE/EE affecting all versions from 16.2 before 18.7.5, 18.8 before 18.8.5, and 18.9 before 18.9.1 that under certain circumstances, could have allowed an unauthenticated user to inject arbitrary scripts into the Mermaid sandbox UI.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceThis is a cross-site scripting (XSS) vulnerability in GitLab's Mermaid diagram sandbox UI that allows unauthenticated users to inject arbitrary JavaScript scripts. The vulnerability affects GitLab CE/EE versions 16.2 through 18.7.4, 18.8.x through 18.8.4, and 18.9.x through 18.9.0.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data>= 16.2.0, < 18.7.5>= 18.8.0, < 18.8.5= 18.9.0CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- Required
- Scope
- Changed
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Check GitLab versionRun `sudo gitlab-rake gitlab:version` or check the GitLab admin panel under Help > Version. Alternatively, check the version file at /opt/gitlab/version or via the API endpoint /api/v4/versionAffected if The installed version is >= 16.2.0 and < 18.7.5, OR >= 18.8.0 and < 18.8.5, OR equals 18.9.0
-
Verify Mermaid diagram feature is enabledNavigate to GitLab admin area > Settings > Metrics and analytics, or check the gitlab.yml configuration file for mermaid/markdown diagram settings. Check if the feature flag 'mermaid_sandbox' or similar is enabled via the Rails console with `Feature.enabled?(:mermaid)`Affected if The Mermaid diagram rendering feature is enabled in the GitLab instance
-
Check for unauthenticated access to Mermaid renderingAttempt to access a page containing a Mermaid diagram as an unauthenticated user, or review the GitLab application settings under General > Visibility and access controls to confirm anonymous/public access is permittedAffected if Unauthenticated or public users can view Markdown content that renders Mermaid diagrams
If the installed GitLab version falls within the affected ranges AND the Mermaid diagram feature is accessible to unauthenticated users, the environment is vulnerable to CVE-2026-0752.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped18.7.518.8.5
GitLab has released patched versions (18.7.5, 18.8.5, 18.9.1 and later). Organizations should upgrade their GitLab instances to one of these versions to remediate the vulnerability.
Upgrade to GitLab 18.7.5 (or latest 18.7.x), 18.8.5 (or latest 18.8.x), or 18.9.1 (or latest stable 18.x) - recommend latest stable 18.x release
- 1. Identify the current GitLab installation version using `gitlab-rake gitlab:env:info` or the GitLab admin interface.
- 2. Based on your current version, determine the minimum upgrade target: if on 16.2.x to 18.6.x, upgrade to at least 18.7.5; if on 18.8.x, upgrade to at least 18.8.5; if on 18.9.0, upgrade to at least 18.9.1.
- 3. Review the GitLab upgrade documentation for your installation method (Omnibus or source): https://docs.gitlab.com/ee/update/
- 4. Before upgrading, backup your GitLab instance using `gitlab-rake gitlab:backup:create`.
- 5. For Omnibus installations, run `sudo apt-get update && sudo apt-get install gitlab-ce` (or `gitlab-ee` for Enterprise Edition).
- 6. For source installations, follow the upgrade path in the installation guide.
- 7. After upgrade, verify the version with `gitlab-rake gitlab:env:info` and confirm the Mermaid sandbox functionality works correctly.
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation1.0 h
- Implementation2.0 h
- Testing1.0 h
- Review / QA1.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $1,424.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-0752 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-0752 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data