AgentbeamBeta
Open-source package vulnerability · PyPI

CVE-2026-102894: GPUStack: SAML callback trusts an unverified SAMLResponse, allowing authentication bypass and account takeover

criticalCVSS 3.1 9.1GHSA-62m9-f875-rqw6

GPUStack's `/auth/saml/callback` trusts any posted SAMLResponse without verifying it. An unauthenticated attacker with network access can log in as any user, including an administrator, and get a `gpustack_session` JWT. Every deployment from 0.7.1 up to but not including 2.2.2 is affected, even with SAML turned off. Upgrade to 2.2.2.

Published Nov 10, 2026 · Analysis Nov 10, 2026

What an attacker can do

The callback Base64-decodes the posted XML, reads the NameID and attributes, finds or creates the user, and issues a gpustack_session JWT. It never calls OneLogin_Saml2_Auth.process_response(), the step that checks signature, issuer, audience, destination and time conditions. So the attacker does not need to forge a signature at all.

No credentials are needed, and SAML does not have to be configured. The callback runs and issues sessions regardless, so every deployment is exposed, not only SAML ones. The attacker posts a response naming an identity. If the name matches an existing user, such as an administrator, they get that user's session: full account takeover. Otherwise a new non-admin user is created.

Administrator access gives control of the deployment and of the GPU infrastructure and model workloads it manages. Response and Assertion IDs are never consumed either, so a captured signed response can be replayed indefinitely. The only precondition is network reachability to the callback path.

Who is affected

The pip package gpustack from 0.7.1 up to but not including 2.2.2 is affected. Configuration does not matter: disabling or not configuring SAML does not protect you. Any server where /auth/saml/callback is reachable is exposed.

Check the version:

pip show gpustack

If you run the container image, check the image tag instead.

gpustack

Ecosystem
PyPI
Affected
>= 0.7.1, < 2.2.2
Fixed in
2.2.2
Check
pip show gpustack

How to fix it

Upgrade to gpustack 2.2.2.

pip install --upgrade gpustack==2.2.2

The fix makes the SAML callback call OneLogin_Saml2_Auth.process_response() and reject responses that fail, so forged or replayed assertions are refused. It also gates the SAML and OIDC login and callback routes so they run only when that provider is the active configured one.

The advisory says no configuration workaround works. Until you upgrade, block network access to /auth/saml/callback at your reverse proxy or ingress. After upgrading, review admin accounts and sessions, because earlier forged logins would be indistinguishable from real ones.

How to tell if you were hit

Check your reverse proxy or access logs for POST requests to /auth/saml/callback, especially on servers that never configured SAML, where any hit is suspect. Review the user list for accounts you did not create, since an unknown NameID provisions a new non-admin user.

Look at admin activity for actions you cannot tie to a person: new API keys, model deployments, changed workers or settings. Sessions are JWTs named gpustack_session, so match issuance times to callback hits.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Impact

The callback Base64-decodes the posted XML, reads NameID and attributes, resolves or provisions the user, and mints a gpustack_session JWT — but never calls OneLogin_Saml2_Auth.process_response(), the step that verifies the signature, issuer, audience, destination, and time conditions.

No credentials are required, and SAML SSO does not even need to be configured. The callback processes the payload and issues a session regardless of whether SAML is set up, so every deployment is affected, not only SAML-enabled ones. Anyone who can reach the endpoint over the network can authenticate as an arbitrary identity by posting a response that names it:

  • If the name matches an existing user (e.g. an administrator), the attacker receives that user's session — full account takeover, including administrator access.
  • Otherwise, a new non-admin user is provisioned.

Administrator access grants full control over the deployment and the infrastructure it manages. Because Response/Assertion IDs are never consumed, a captured signed response also replays indefinitely.

Precondition: network reachability to /auth/saml/callback. SAML SSO configuration is not required. A full proof-of-concept is available privately to maintainers.

Patches

Fixed in gpustack 2.2.2:

  • The SAML callback now validates the response via OneLogin_Saml2_Auth.process_response() — signature, issuer, audience, destination, and time conditions — and rejects responses that fail, so forged or replayed assertions are no longer accepted.
  • The SAML and OIDC login/callback routes are now gated to run only when that provider is the configured active provider, so a deployment that has not enabled the provider no longer parses attacker-supplied IdP payloads.

Workarounds

There is no effective configuration-level workaround — disabling or not configuring SAML does not mitigate this on affected versions, since the callback runs regardless. Until upgraded, block network access to /auth/saml/callback (e.g. at a reverse proxy / ingress).

Credit

Reported privately by Austin Chu, Sohee Kim, and Corban Villa (UC Berkeley security research project), and independently, earlier, by a researcher who wishes to remain anonymous.

Questions

Am I safe if I never enabled SAML in GPUStack?

No. The callback processes the payload and issues a session whether or not SAML is configured. Every deployment in the affected range is exposed until upgraded or the path is blocked.

What is the quickest mitigation if I cannot upgrade?

Block network access to /auth/saml/callback at the reverse proxy or ingress. The advisory says there is no effective configuration-level workaround.

Does the attacker need valid credentials or a signed response?

Neither. The callback never verifies the response, so an unsigned crafted one works. The CVSS vector lists no privileges and no user interaction.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

Coverage on the Beam blog

More PyPI vulnerabilities

All PyPI entries