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

Critical 9.9 Published Updated

Attackers can achieve code execution or denial of service via insecure template expansion in GitLab AI Gateway Duo Workflow Service.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-1868?

CVE-2026-1868 is a critical code injection vulnerability in GitLab AI Gateway, published on 9 Feb 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official 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.

Weakness: CWE-1336

Which versions are affected by CVE-2026-1868?

How do I fix CVE-2026-1868?

No fix has been published for CVE-2026-1868 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2026-1868 being exploited?

There is no known exploitation of CVE-2026-1868 in the wild and no public exploit code.

Sources

Also known as GHSA-jfr3-cr47-9vqq.

Is CVE-2026-1868 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free