News Analysis 9 min read

Pomerium MCP Token Flaw Skips The Client Secret

Pomerium's MCP token endpoint skipped client-secret checks. Upgrade to 0.34.0, validate client behavior and revoke exposed OAuth tokens.

By Protocol Report Editorial | Updated November 24, 2026
An amber authorization code and refresh token pass an access gateway with a mismatched secret and reach tool services while a cyan path verifies client identity and secret, installs the fixed release and revokes old tokens
Short Version

CVE-2026-135300 affects Pomerium 0.30.0 through 0.33.x. In the MCP token endpoint, clients registered for `client_secret_basic` could present any secret or no secret because the endpoint never compared the supplied value with the registered credential. An attacker still needs a victim's intercepted authorization code or refresh token. With that artifact, the missing client check can allow redemption for the victim's access tokens. This is not a claim that any unauthenticated caller can mint an arbitrary token.

Pomerium 0.34.0 verifies the client ID and secret through the transport method the client registered to use and returns `invalid_client` when proof fails. Upgrade every affected deployment, verify the running version and test both correct and deliberately incorrect credentials. Expect a compatibility issue for clients that omitted `token_endpoint_auth_method`: they defaulted to `client_secret_basic`, but some worked without sending their secret only because the vulnerable endpoint did not enforce it. Investigate token exchanges, revoke exposed session and refresh material, and preserve the distinction between Pomerium-issued client tokens and upstream provider tokens when scoping impact.

Key Takeaways

  • check_circle The vulnerability affects Pomerium 0.30.0 before 0.34.0 and was published as CVE-2026-135300 on November 23.
  • check_circle The missing check is specific to MCP token requests for confidential clients using `client_secret_basic`; clients registered with the `none` method are not made confidential by this fix.
  • check_circle An attacker must first obtain an authorization code or refresh token, so stolen OAuth artifacts are a real prerequisite rather than an optional part of the attack story.
  • check_circle Version 0.34.0 checks the Basic username against the client ID, verifies the secret, binds credentials to the registered transport and rejects mixed authentication methods.
  • check_circle Some previously working MCP clients may receive `invalid_client` after the update because an unspecified authentication method defaulted to `client_secret_basic` even when the client sent no secret.
  • check_circle Patch, then investigate and revoke: updating stops future bad redemptions but does not invalidate access or refresh tokens already issued.

The Token Endpoint Omitted A Required Second Proof

Pomerium can stand between an MCP client and a protected tool service, handling authentication, policy and OAuth token exchange. The project advisory says the endpoint at `/.pomerium/mcp/token` accepted `client_secret_basic` requests without verifying the presented secret. The affected branch logged that HTTP authentication had been handled, but it did not compare the password with the credential stored for that client.

A confidential OAuth client is supposed to prove both what grant it holds and which client is redeeming that grant. Here, a victim's authorization code or refresh token supplied the grant, while the missing secret comparison removed the client proof. The Pomerium fix notes that the endpoint accepted any secret or none. Once the request passed, the endpoint could issue access tokens carrying the victim's authorization.

The distinction matters for severity and response. The CVE is scored 9.1 under CVSS 4.0, with high attack complexity and an attack requirement present. The public advisory does not say an attacker can guess a username, omit every credential and receive a token. It requires possession of an intercepted code or refresh token, and the public sources reviewed for this article do not report observed in-the-wild exploitation.

Affected Clients Use The Confidential Basic Method

The vulnerable range begins with Pomerium 0.30.0 and ends before 0.34.0. The relevant clients are registered with `token_endpoint_auth_method` set to `client_secret_basic`, or omit the setting and therefore default to that method. In this model, the client ID and secret travel in the HTTP Basic authorization header when the client exchanges a code or refresh token at the token endpoint.

Clients explicitly registered with the `none` method are public clients and remain unaffected by the new secret check. That does not make their grants unprotected: MCP authorization builds on OAuth, and public clients rely on controls such as PKCE, exact redirect URI matching, one-time authorization codes and secure token handling. Do not assign a secret to a client type that cannot keep one, and do not use this CVE as evidence that every Pomerium route or every MCP authentication mode is bypassed.

The Pomerium MCP architecture also distinguishes the external token presented by an MCP client from an internal upstream OAuth token cached for a service such as Linear. Incident scoping must identify which flow and audience the vulnerable token endpoint served. A successful Pomerium token exchange does not by itself prove that an upstream provider's raw access or refresh token was exposed, but it can let the attacker act through the permissions represented by the token Pomerium issued.

Version 0.34.0 Enforces Method, Identity And Secret

Pomerium 0.34.0 contains the fix. The release notes say clients registered without an explicit token-endpoint authentication method default to `client_secret_basic` and now receive `invalid_client` unless they send their secret. The implementation reads Basic credentials from the Basic header, requires the Basic username to match the requested client ID and compares the presented secret with the registered value.

The change also binds each credential to its registered transport. A `client_secret_basic` client cannot move the secret into the form body, and a `client_secret_post` client cannot substitute a Basic header. Requests that mix both mechanisms are rejected. The implementation avoids a query-string value standing in for the expected header or body credential and performs the secret comparison in constant time.

Inventory every deployment rather than only the main gateway. Include self-managed binaries, containers, Kubernetes workloads, developer clusters and recovery environments. Record the running version, image digest and configuration source, then update to 0.34.0 or later through the supported release process. After restart or rollout, verify the version from the running instance and check that every replica has converged before restoring normal traffic.

The Fix Can Expose Previously Hidden Client Misconfiguration

The patch intentionally changes behavior. Pomerium's pull request explains that a client registered without naming an authentication method received a secret because the default was `client_secret_basic`, yet the old endpoint never checked that secret. A client implementation that also failed to send the secret could therefore appear healthy. After the update, the same exchange fails with `invalid_client` until the client sends the credential or is re-registered with a method appropriate to its capabilities.

Treat those failures as configuration evidence, not a reason to roll back. Identify the client registration, confirm whether it is capable of protecting a secret, and set the authentication method deliberately. For a real confidential client, retrieve the secret through the approved secret manager and configure the Basic exchange. For a public client, use the supported public-client flow and its code-binding protections rather than copying a confidential secret into software or a browser where it cannot remain confidential.

Run a controlled negative test after the upgrade. A correct client ID and secret should complete the intended exchange. A wrong secret, missing secret, mismatched Basic username, secret in the wrong transport, mixed methods and query-string substitution should all fail. Perform testing in an isolated registration or test environment so the validation does not expose production grants or create noise that obscures a real investigation.

Investigate The Grant Before Rotating Everything

Start with token-endpoint telemetry. Search access, proxy and application logs for calls to `/.pomerium/mcp/token`, then group by client ID, grant type, source address, user agent, time and outcome. Look for a code redeemed from an unexpected source, refresh activity outside the normal client pattern, repeated `invalid_client` events after the fix, or successful exchanges where surrounding client telemetry shows no matching request.

Authorization codes are normally short-lived and single-use, while refresh tokens are designed to obtain later access tokens. Pomerium's patch discussion says its MCP refresh tokens can live for a year, making historical exposure important. Determine how a suspect artifact could have left the client: redirect logs, browser history, support captures, proxy traces, crash reports, developer tooling and copied configuration are all more useful leads than assuming the token endpoint created the original leak.

For a supported exposure, revoke the affected Pomerium session, access and refresh material through the mechanisms used by that deployment, rotate the client secret and re-register the client if necessary. If evidence shows that upstream provider tokens or sessions were also exposed, revoke them at that provider; do not infer that scope from this CVE alone. Preserve identifiers and timestamps before revocation so identity, gateway and service logs can be searched for their use.

MCP Authorization Needs Independent Failure Boundaries

Client-secret verification is one control in a chain. MCP's authorization specification uses OAuth for HTTP transports and assigns the authorization server responsibility for issuing access tokens. OAuth security guidance also calls for exact redirect matching, PKCE for public clients and preferably confidential clients, one-time authorization codes, audience restriction and careful refresh-token protection. Each layer limits what one leaked artifact can do.

Reduce the value and lifetime of tokens. Give each MCP route its own client registration and least-privilege policy, keep scopes narrow, shorten refresh lifetimes where operations permit, rotate refresh tokens, and use sender-constrained tokens when the participating software supports them. Separate development and production clients. A shared registration across many tools makes one secret or grant harder to attribute and increases the blast radius of a single leak.

Finally, make token exchange observable without logging the tokens themselves. Retain client ID, authentication method, grant type, token audience, policy result, source, stable request identifier and error class. Alert on method changes, new registrations, wrong-secret failures, unusual refresh cadence and exchanges without a matching authorization event. Redact authorization headers, codes, access tokens and refresh tokens at collection so the detection system does not become the next source of the prerequisite an attacker needs.

Checklist

  • Inventory Pomerium 0.30.0 through 0.33.x across production, development, recovery and individually managed deployments.
  • Map each MCP client registration to its explicit token-endpoint authentication method, owner, secret store, redirect URIs, scopes and refresh lifetime.
  • Upgrade every affected instance to Pomerium 0.34.0 or later and verify the running version and image digest on every replica.
  • Test that correct credentials succeed while wrong, absent, mismatched, mixed-transport and query-substituted credentials fail.
  • Review token-endpoint, proxy, identity and client telemetry for unexpected code or refresh-token redemptions and preserve identifiers before revocation.
  • Revoke affected Pomerium sessions and tokens, rotate client secrets, and revoke upstream provider material only when evidence places it in scope.
  • Apply PKCE, exact redirects, narrow scopes, shorter or rotated refresh tokens, sender constraints where supported and token-safe logging.

Sources

Related Articles

Continue Reading