Summary
A critical authentication bypass in Google MCP Toolbox causes opaque-token validation to skip issuer verification when an OAuth 2.0 introspection response omits the optional iss field.
As a result, the application may accept tokens issued by unauthorized or unintended identity providers, potentially granting access without proper issuer validation.
Affected context
The vulnerability occurs in deployments that:
- Use the generic opaque-token validation path
- Validate tokens through an OAuth 2.0 introspection endpoint
- Configure an expected token issuer
- Receive introspection responses that omit the optional
issclaim
Risk depends on whether an attacker can present a token accepted by the configured introspection service but issued by an unintended identity provider.
Exploit preconditions
- Attack surface: Authenticated application or API endpoints protected by opaque-token validation
- Required access: Ability to present a token to the protected service; control of an accepted or reachable identity-provider flow may also be relevant
- Trigger point: Validation of an opaque token after the introspection response is decoded
- Why exploitation is possible: The issuer comparison is skipped when the introspection response does not contain an
issvalue, allowing token acceptance without the intended issuer check
Why this happens
The root cause is an incomplete conditional used during security-claim validation. The implementation checks the configured issuer and the returned issuer only when both values are non-empty, treating a missing issuer claim as a reason to skip validation rather than as a failed or insufficiently trusted response.
This behavior maps to CWE-287: Improper Authentication, because an authentication decision can succeed without verifying a required identity-provider property. The insecure pattern is conditional enforcement of an authentication claim based on attacker-influenced or externally supplied field presence.
Potential impact
- Unauthorized users may gain access to protected MCP Toolbox functionality
- Tokens from unintended identity providers may be accepted
- Authorization boundaries between identity providers could be bypassed
- Protected data or connected services could be accessed
- Compromised accounts or tokens could enable further application abuse
General mitigation guidance
Mitigation generally focuses on making issuer validation mandatory whenever an issuer is configured.
Common defensive patterns include:
- Fail closed when a required introspection claim is missing
- Require an exact, trusted issuer match rather than conditionally skipping the comparison
- Treat incomplete or malformed introspection responses as invalid
- Minimize trust in externally supplied authentication metadata
- Apply least privilege to identities and downstream MCP tools
- Separate authentication success from authorization decisions and enforce both explicitly
- Use defensive tests covering omitted, empty, unexpected, and conflicting issuer values
How teams detect issues like this
Organizations can detect this class of issue through:
- Static analysis for authentication checks guarded by optional-field presence
- Code review searches for conditions that skip issuer, audience, or subject validation when values are empty
- Tests that provide introspection responses with missing or malformed security claims
- Policy enforcement requiring fail-closed handling for incomplete identity-provider responses
- Authentication telemetry that records issuer-validation outcomes and unexpected token-provider values
Automated security review tools may help identify conditional claim-validation patterns, but findings should be confirmed against the intended authentication policy.

