All Insights

GitLab Just Patched a 9.9 CVE in Its AI Backend. Again.

CivSafe Team·October 5, 2026·5 min read

On October 2, GitLab issued a critical security advisory for CVE-2026-90970: a CVSS 9.9 vulnerability in its AI Gateway, the backend service that powers Duo AI features on self-hosted instances.

If you run self-hosted GitLab with Duo enabled, close this tab and go patch. Fixed versions are 19.2.4, 19.3.2, and 19.4.1.

If you're still reading, here's what happened — and why this is about more than one CVE.

What the bug actually is

The GitLab AI Gateway is a separate network service, not part of GitLab core. It's what connects your self-hosted instance to AI models for Duo features: code completions, the Duo Chat assistant, and Duo Workflow, which lets teams build automated AI agent flows.

CVE-2026-90970 is a template injection flaw in the Duo Workflow Service. Any authenticated user with Duo Agent Platform access can craft a flow configuration that escapes the prompt template sandbox and executes arbitrary commands on the machine running the Gateway. Full code execution. CVSS 9.9. No public proof-of-concept yet, and no confirmed exploitation in the wild as of this writing — but this class of bug gets scripted into pentest tools fast once it's public.

Here's the part worth sitting with: this is the second critical vulnerability in the same component in eight months.

CVE-2026-1868 dropped in February with the same CVSS score, the same class of flaw (insecure template expansion in Duo Workflow), and the same consequence: code execution on the Gateway host. February's patch closed one variant. October's patch closed another.

Two critical patches. Same service. Eight months apart.

Why this keeps happening in AI features specifically

When GitLab shipped Duo AI features, it didn't just add new buttons to the interface. It deployed a separate network-accessible service that handles user-submitted content, routes requests to external AI APIs, and runs inside your infrastructure with its own codebase and dependencies.

Most teams that enabled Duo treated it as a feature toggle. "We turned on AI for code review." What they actually did was deploy a new service with its own attack surface. And because it ships separately from GitLab core, it has its own patch cadence — one that's easy to miss if you're only watching GitLab's main release announcements.

This is the pattern right now across AI-enabled tools. Amazon Kiro required targeting the AI workspace layer specifically to poison developer environments. Cursor's AI coding features became an entry point for ransomware intrusions. The AI layer is where the new vulnerabilities are landing, because it's where code is shipping faster than security audits can keep up.

GitLab's AI Gateway has two critical patches in eight months. That's not a knock on GitLab — it's an indicator of where we are with AI feature security across the industry. The teams building these features are moving fast. The security reviews are lagging.

Who's actually affected

Only self-hosted GitLab instances with the AI Gateway component enabled. If your team uses GitLab.com (the cloud version), you're not exposed — GitLab handles that infrastructure.

Affected versions: 18.1.6 through 19.2.3, 19.3.0 through 19.3.1, and 19.4.0.

If you're not sure whether you have the AI Gateway running: it's a separate service that typically listens on port 5052. If your team enabled any Duo features after GitLab 16.0, you almost certainly have it. Check your infrastructure.

The question every org should ask

If you've been enabling AI features over the last 18 months — and most teams have — here's a question worth answering honestly: do you know what infrastructure each of those features actually deployed?

Not the feature itself. The backend. When you turned on Jira AI, are those requests going to Atlassian's servers or processing data locally? When you enabled Copilot or Duo or any other AI assistant in your dev tools, what new services went live on your infrastructure? Who's patching them?

Most small teams can't answer this. They enabled the feature, it worked, and they moved on. The infrastructure question didn't come up.

This is the risk hiding in plain sight right now. Every AI feature you've enabled this year may have added a new network-accessible service to your stack — one with its own vulnerability history and its own patch schedule. The GitLab AI Gateway has two CVSS 9.9 patches this year. What does your AI feature inventory look like?

What to do

If you run self-hosted GitLab with Duo: Patch to 19.2.4, 19.3.2, or 19.4.1 now.

For everything else: spend an hour making a list of every AI feature your team enabled in 2025–2026. For each one: does it run a service inside your environment? When was it last patched? Who gets the security advisories for it?

You don't need a full audit for this. You need the list and the questions. The gaps tend to become obvious once you're looking at them.

We help small teams run exactly this kind of inventory — map what AI features you've enabled, identify what infrastructure came with them, and close the gaps before someone else finds them. If that would be useful, reach out.

CivSafe — Strategic Innovation. Community Impact.