This vulnerability in GitLab's AI Gateway allows an authenticated user with Duo Agent Platform access to redirect outbound requests — including those carrying your Google Cloud credentials — to an attacker-controlled endpoint. The root cause is straightforward: GitLab built a routing engine that accepts user-supplied inline flow configuration, and that configuration can override the Host header on requests authenticated by the AI Gateway's own credentials. If you're running AI Gateway, assume the credentials it uses for Vertex AI access were potentially exfiltrable the moment this vulnerability existed in your deployment.
Here's what matters most: the credentials in question include signing keys, not just API keys. Signing keys operate under a trust model where downstream systems authenticate the signature, not the request path. An attacker who captures these keys can forge authenticated requests to any system that trusts those signatures — that's a second-order compromise that extends well beyond the AI Gateway component itself. Rotating a GCP service account key is straightforward; rotating a signing key that's baked into trust relationships across your integration ecosystem is not.
Prioritize in this order: First, apply the patch immediately — GitLab 18.10.x and later contain the fix. Second, rotate every credential the AI Gateway used, including any signing keys, regardless of whether you have evidence of compromise. Third, audit what that credential could access: check Vertex AI permissions, examine whether the same service account was used elsewhere, and identify any downstream systems that trust requests signed by those keys. Fourth, review your AI Gateway configuration for any inline flow definitions that shouldn't be there — the vulnerability was in how user configuration could manipulate routing, so existing configuration may reveal whether the flaw was actively exploited.
The uncomfortable architectural question is why authenticated users could control routing at all. This is a pattern that recurs in CI/CD systems, infrastructure agents, and webhook delivery — flexible routing engines that accept user configuration without treating that configuration as untrusted input. The fix GitLab shipped should tell you something: if they removed the inline flow capability entirely, they concluded user-controlled routing is inherently unsafe in this context. If they added authorization gates instead, they're betting the capability can be safely constrained. Either way, your threat model for AI Gateway should assume no authenticated user should control where requests carrying organizational credentials go. The security boundary belongs around the routing layer itself, not around who can authenticate to GitLab.