Home / GitLab / GitLab AI Gateway / CVE-2026-1868
CVE-2026-1868: is it exploited, and which versions of GitLab AI Gateway are affected and fixed?
CVE-2026-1868 is a template injection vulnerability in GitLab AI Gateway. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 12:38 UTC). Affected: GitLab AI Gateway from 18.1.6 before 18.6.2, GitLab AI Gateway from 18.7.0 before 18.7.1 and GitLab AI Gateway from 18.8.0 before 18.8.1 (CVE record by GitLab). Fixed in 18.6.2, 18.7.1 and 18.8.1 (CVE record by GitLab). Severity: Critical (9.9, CVSS 3.1, from GitLab).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 12:38 UTC, CVE record November 19, 2026, 07:09 UTC and NVD November 19, 2026, 07:13 UTC.
What is CVE-2026-1868?
Improper Neutralization of Special Elements Used in a Template Engine in GitLab AI Gateway
GitLab has remediated a vulnerability in the Duo Workflow Service component of GitLab AI Gateway affecting all versions of the AI Gateway from 18.1.6, 18.2.6, 18.3.1 to 18.6.1, 18.7.0, and 18.8.0 in which AI Gateway was vulnerable to insecure template expansion of user supplied data via crafted Duo Agent Platform Flow definitions. This vulnerability could be used to cause Denial of Service or gain code execution on the Gateway. This has been fixed in versions 18.6.2, 18.7.1, and 18.8.1 of the GitLab AI Gateway.
From the CVE record by GitLab, last updated February 9, 2026, 15:46 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| GitLab | GitLab AI Gateway | from 18.1.6 before 18.6.2 from 18.7.0 before 18.7.1 from 18.8.0 before 18.8.1 | 18.6.2, 18.7.1, 18.8.1 |
As the CVE record by GitLab states it, last updated February 9, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
How severe is CVE-2026-1868?
| Score | Version | Vector | Source |
|---|---|---|---|
| Critical 9.9 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H | GitLab |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-1868 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: total (CISA ADP, February 9, 2026)
- EPSS
- 0.70% probability of exploitation activity in the next 30 days, percentile 54.3 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-1336 Improper Neutralization of Special Elements Used in a Template Engine
How do I fix it? (from the CVE record)
Upgrade self-hosted GitLab AI Gateway to version 18.6.2, 18.7.1, 18.8.1 or above.
Where are the vendor advisories and references?
- https://gitlab.com/gitlab-org/modelops/applied-ml/code-suggestions/ai-assist/-/work_items/1850
- https://about.gitlab.com/releases/2026/02/06/patch-release-gitlab-ai-gateway-18-8-1-released/
Who found and reported it?
- This vulnerability has been discovered internally by GitLab team member Joern Schneeweisz (finder)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- February 3, 2026
- Published
- February 9, 2026, 06:33 UTC
- CVE record updated
- February 9, 2026, 15:46 UTC by GitLab
- NVD
- Deferred, last modified June 17, 2026, 10:16 UTC
- Last checked
- CVE list November 19, 2026, 07:09 UTC; NVD November 19, 2026, 07:13 UTC; KEV December 3, 2026, 12:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect GitLab AI Gateway?
- Oct 2, 2026CVE-2026-90970 GitLab AI Gateway: template injection
- Aug 27, 2026CVE-2026-75871 GitLab AI Gateway: server-side request forgery (SSRF)
- Aug 27, 2026CVE-2026-19889 GitLab AI Gateway: server-side request forgery (SSRF)
Every CVE in GitLab AI Gateway
Questions about CVE-2026-1868
Is CVE-2026-1868 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 12:38 UTC. FIRST's EPSS gives it a 0.70% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of GitLab AI Gateway are affected by CVE-2026-1868?
GitLab AI Gateway from 18.1.6 before 18.6.2, GitLab AI Gateway from 18.7.0 before 18.7.1 and GitLab AI Gateway from 18.8.0 before 18.8.1, per the CVE record by GitLab. The tables above give every range the sources list.
Which version fixes CVE-2026-1868?
18.6.2, 18.7.1 and 18.8.1, per the CVE record by GitLab. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-1868?
Critical (9.9, CVSS 3.1, from GitLab). The severity table above shows each score with its source.
Where is the official record of CVE-2026-1868?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.