# CVE-2026-1868: Improper Neutralization of Special Elements Used in a Template Engine in GitLab AI Gateway

> CVE-2026-1868: Improper Neutralization of Special Elements Used in a Template Engine in GitLab AI Gateway. CVSS 9.9 (CVSS 3.1).

Canonical: https://rewindex.com/cve/CVE-2026-1868
Last updated: 2026-06-17T10:16:38Z

- Published: 2026-02-09 06:33 UTC · Updated: 2026-06-17 10:16 UTC · Assigner: GitLab
- CVSS: 9.9 (CVSS 3.1) · Severity: Critical · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- EPSS: 0.71%, 53th percentile (scored 2026-10-25)
- CISA KEV: no
- CWE: CWE-1336

## Description

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.

## Affected vendors and products

- GitLab: GitLab AI Gateway

## Tracked companies

- [GitLab](https://rewindex.com/company/gitlab.md)

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2026-1868)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2026-1868)
- [https://about.gitlab.com/releases/2026/02/06/patch-release-gitlab-ai-gateway-18-8-1-released/](https://about.gitlab.com/releases/2026/02/06/patch-release-gitlab-ai-gateway-18-8-1-released/)
- [https://gitlab.com/gitlab-org/modelops/applied-ml/code-suggestions/ai-assist/-/work\_items/1850](https://gitlab.com/gitlab-org/modelops/applied-ml/code-suggestions/ai-assist/-/work_items/1850)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2026-1868 · Markdown: https://rewindex.com/cve/CVE-2026-1868.md · JSON: https://rewindex.com/api/v1/cves/CVE-2026-1868 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-10-26T02:50:16.604Z
