CVE-2026-1230
Branch Reference Validation Flaw in GitLab Causes Code Mismatch
Publication date: 2026-03-11
Last updated on: 2026-03-17
Assigner: GitLab Inc.
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| gitlab | gitlab | From 18.8.0 (inc) to 18.8.6 (exc) |
| gitlab | gitlab | From 18.9.0 (inc) to 18.9.2 (exc) |
| gitlab | gitlab | From 18.8.0 (inc) to 18.8.6 (exc) |
| gitlab | gitlab | From 18.9.0 (inc) to 18.9.2 (exc) |
| gitlab | gitlab | From 1.0.0 (inc) to 18.7.6 (exc) |
| gitlab | gitlab | From 1.0.0 (inc) to 18.7.6 (exc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-706 | The product uses a name or reference to access a resource, but the name/reference resolves to a resource that is outside of the intended control sphere. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability in GitLab CE/EE affects versions before 18.7.6, 18.8.6, and 18.9.2. It allows an authenticated user to cause repository downloads to contain different code than what is displayed in the web interface. This happens due to incorrect validation of branch references under certain circumstances.
How can this vulnerability impact me? :
The impact of this vulnerability is that an authenticated user could download repository code that differs from what is shown on the web interface. This could lead to confusion, mistrust, or potential misuse of code if the downloaded version contains unexpected or malicious changes.
How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:
I don't know
How can this vulnerability be detected on my network or system? Can you suggest some commands?
I don't know
What immediate steps should I take to mitigate this vulnerability?
To mitigate this vulnerability, you should upgrade GitLab CE/EE to a fixed version. Specifically, update to version 18.7.6 or later if you are on the 18.7 branch, 18.8.6 or later if on the 18.8 branch, or 18.9.2 or later if on the 18.9 branch.