← Back to Blog
Vulnerability Research10 min read

AI Gateway Pentest: Tenant-Isolation Lessons from November 2026

November 19, 2026 · Updated November 26, 2026

AI gateways — LiteLLM, Portkey, Kong AI Gateway, OpenAI-compatible proxies and the long tail of custom FastAPI wrappers — have become the control plane between application code and the underlying LLM providers. They mediate model routing, rate limiting, cost caps, logging, PII redaction and multi-tenant isolation. That position makes them a high-leverage attack target: compromise the gateway and you compromise every tenant and every integration behind it. The November 2026 LiteLLM advisories make the point concretely — a KEV-listed admin-reachability bug and seven tenant-isolation advisories shipped inside two weeks.

CVE-2026-40217 on KEV

CISA added CVE-2026-40217 — a LiteLLM proxy vulnerability — to the Known Exploited Vulnerabilities catalog on 11 Nov 2026, with a federal civilian agency remediation deadline of 2 December 2026. The fix is upstream; the remediation step is deploying the fixed LiteLLM release train and verifying the installed version against the vendor advisory. For organisations running LiteLLM as a shared AI gateway across business units, this is also a good moment to audit which teams can reach the proxy's admin surface at all.

Update 26 Nov: the multi-tenant advisories

Between 23 and 24 Nov 2026 the LiteLLM project published a cluster of advisories that together map the tenant-isolation attack surface of an AI gateway. The table below summarises each from the vendor's GitHub Security Advisories listing. None is on KEV as of catalog 2026.11.25 — the KEV entry remains CVE-2026-40217 — but all have fixes you should be running.

Advisory (published)Issue (summarised)SeverityFixed
GHSA-m8fp-3f3g-j5p7 (23 Nov)Client-supplied api_key / api_base added to the router's shared deployment list → other users' traffic could go via caller's key or, with client-side credentials enabled, to an attacker endpointHigh1.103.0
GHSA-34v7-jqrg-944p (23 Nov)Request callbacks field enabled a logging integration globally for all users on the workerModerate 5.41.84.4
GHSA-wpm4-hgr2-xjwr (23 Nov)Stored team / key fallback targets not checked against allowed modelsModerate 5.41.108.0 (default-on check)
GHSA-w5h5-479w-p5hx (24 Nov)JWT / SSO email fallback could link a sign-in to another userHigh 7.6 (CVSS 4.0)1.111.0
GHSA-p377-4hwj-f3fh (24 Nov)Bulk all_users update stored passwords in plaintextModerate 4.91.104.0
GHSA-2364-6whj-g7vx, GHSA-fjxr-j47c-4x2x (23 Nov)Authenticated users could read proxy-wide cache activity / any tenant's spend tagsModerateSee advisories

Source: github.com/BerriAI/litellm/security/advisories and each individual GHSA page.

AI gateway pentest plan

The LiteLLM pattern repeats across every AI gateway we test. A pentest scope should explicitly answer four questions on every tenant boundary in the proxy:

  1. Can any request parameter change shared state for other tenants? Client-supplied api_base, callbacks, cache configuration, or routing-table entries must never persist past the request. Test with parallel tenants and verify the second tenant's behaviour.
  2. Are stored team / key routing rules re-authorised at use time? A fallback target or model allow-list stored in the past must be re-checked at every dispatch, not trusted because it was valid when written. GHSA-wpm4-hgr2-xjwr is exactly this bug.
  3. Does SSO / JWT user linking trust unverified email claims? The gateway must verify both the identity provider identifier and that the email claim is marked verified. Unverified email as the join key is the pattern behind GHSA-w5h5-479w-p5hx.
  4. Are secrets hashed on every write path, including bulk paths? A single bulk-update endpoint that writes plaintext (GHSA-p377-4hwj-f3fh) can undo an otherwise clean password architecture. Test every write path, not just the primary create-user endpoint.

Beyond LiteLLM: generalising the checks

Portkey, Kong AI Gateway, OpenAI-compatible proxies and custom FastAPI/NestJS AI gateways share the same architecture — router + credential vault + shared logging / caching layer + multi-tenant RBAC. Every finding class above has a direct analogue in each of those systems. The LiteLLM advisories are useful because they give you a specific pattern to check for; the pentest scope should not stop at "we don't run LiteLLM".

For deeper scope on LLM-layer attacks beneath the gateway, see our LLM VAPT and AI Agent VAPT pages. For the model and weight layer, see Model & Model Weights VAPT.

Frequently asked questions

What is CVE-2026-40217?

CVE-2026-40217 is a LiteLLM proxy vulnerability added to the CISA KEV catalog on 11 Nov 2026 with a federal remediation deadline of 2 Dec 2026. It allows authenticated attackers to reach administrative functionality through a flaw in how the proxy evaluated privileged routes. The LiteLLM project shipped a fix; organisations should move to the current stable line and verify their deployed version against the vendor's advisory.

What is a tenant-isolation bug in an AI gateway?

A flaw where one user's request changes what happens to other users' requests — e.g. a client-supplied endpoint or callback that persists in shared router state. LiteLLM fixed several such issues on 23-24 Nov 2026 (GHSA-m8fp-3f3g-j5p7, GHSA-34v7-jqrg-944p).

Should we pentest our AI gateway even if we don't use LiteLLM?

Yes. The failure patterns LiteLLM experienced are gateway-architecture problems: client-supplied parameters influencing shared state, stored routing rules that aren't re-authorised at use time, SSO user-linking that trusts unverified email claims, and credential storage in plaintext on bulk paths. Any AI gateway — Portkey, Kong AI Gateway, custom FastAPI proxies — can carry the same classes.

What evidence does an AI gateway pentest produce?

Findings mapped to OWASP LLM Top 10 (LLM07 insecure plugin design, LLM08 excessive agency), SOC 2 CC6.6, ISO 27001:2022 A.8.3 / A.8.8, and ISO 42001 if the gateway is part of an AI management system. The report form is a standard pen testing deliverable with LLM-gateway-specific findings.

Book an AI gateway pentest

Authorised, scoped testing of your AI gateway's multi-tenant surface — including router state, stored routing rules, SSO / JWT user linking, and secret write paths.

Book a demo →

Stop finding vulnerabilities manually

TigerStrike uses AI agents to continuously discover, validate, and exploit vulnerabilities across your applications — so your team can focus on fixing what matters.