Answers · MCP security
We put our internal MCP servers behind Pomerium, so AI clients sign in through Pomerium's MCP authorization flow. I saw a critical advisory about Pomerium's MCP token endpoint. What is CVE-2026-135300, which version fixes it, and what should we check after upgrading?
Last updated
TL;DR: It could before Pomerium 0.34.0. CVE-2026-135300 (GHSA-2hj6-2qpj-pqj2, published November 23, 2026; VulnCheck rates it critical, CVSS 4.0 score 9.1) affects Pomerium from 0.30.0 up to 0.34.0. When Pomerium acts as the OAuth authorization server for MCP clients, its token endpoint at /.pomerium/mcp/token didn't check the client secret for clients registered with the client_secret_basic method. Someone who had already intercepted an authorization code or a refresh token could redeem it with any secret and get the victim's access tokens. The secret is meant to be the second factor that makes a leaked code or refresh token useless on its own. The fix (pull request 6787) shipped in 0.34.0 on November 4, 2026; 0.34.2 (November 25) was the newest release on November 28. Upgrading changes behaviour: clients that registered without naming a method default to client_secret_basic and now get invalid_client unless they really send their secret, and because Pomerium's MCP refresh tokens last a year, that can show up mid-session.
What should I check, step by step?
1. Check the running version: Pomerium 0.30.0 through 0.33.x is affected when it serves MCP routes. 0.34.0 and later check the secret. The 0.33.5 and 0.33.6 releases from October 2026 don't carry the fix.
- Before upgrading, read the 0.34 licensing note: official 0.34 binaries and images ship under the Pomerium Community Edition License while the source stays Apache 2.0. Confirm you're eligible or plan a commercial license or a source build.
- After upgrading, watch for MCP clients that start getting invalid_client at the token endpoint. Those registered as client_secret_basic but never sent the secret; they need to send it in the Authorization header or register again with the method they actually use.
- Treat refresh tokens issued before the upgrade as possibly exposed if they could have been logged or captured: in proxy or debug logs, crash reports, shared config files or an agent's own memory. Make those users sign in again rather than waiting a year for the tokens to expire.
- Look in your Pomerium access logs for token endpoint requests that refreshed a client's tokens from an address or user agent that client doesn't normally use.
- Keep MCP clients from writing refresh tokens or authorization codes into logs, transcripts or tool output an agent can read back later.
What is CVE-2026-135300 in Pomerium's MCP token endpoint?
Pomerium is an identity-aware proxy that can also protect MCP servers (the advisory covers every release from 0.30.0): an MCP client signs the user in through Pomerium's own OAuth flow, and Pomerium issues the access and refresh tokens the client then uses on the protected routes. Clients can register themselves, and each registration names how the client proves it's that client at the token endpoint: none, client_secret_post (the secret in the request body) or client_secret_basic (the secret in an HTTP Basic Authorization header).
- The advisory, published to GitHub's advisory database on November 23, 2026 with VulnCheck's write-up of the same date, says Pomerium from 0.30.0 before 0.34.0 skipped client secret verification for client_secret_basic clients. In 0.33.0 the token handler only logged that Basic authentication was 'handled by HTTP layer' and checked nothing; the tests for a wrong Basic secret were marked as skipped with a note that validation wasn't implemented yet.
- The attack needs a token the attacker already has. Someone holding an intercepted authorization code or refresh token could send it to /.pomerium/mcp/token with any secret and receive the victim's access tokens. VulnCheck's CVSS 4.0 vector reflects that: network reachable, no privileges or user interaction needed, but a high-complexity precondition (getting the code or token first).
How does Pomerium 0.34.0 fix CVE-2026-135300, and what does the upgrade change for MCP clients?
Pull request 6787, merged September 24, 2026 and released in 0.34.0 on November 4, 2026, makes the token endpoint verify the secret for client_secret_basic. The Basic header must be present, must name the same client the request is for, and its secret is compared in constant time. A client is bound to the method it registered: the right secret sent the wrong way, or sent both ways at once, is refused, and a secret in the query string never counts. A companion change (pull request 6786) answers every client authentication failure with invalid_client, which tells MCP clients their registration is dead and they should register again.
- The release notes list it under Breaking. A client that registered without a token_endpoint_auth_method defaulted to client_secret_basic, so it holds a secret Pomerium never checked. If it doesn't actually send that secret, it worked before and gets invalid_client after the upgrade until it registers again or starts sending it. The pull request notes that Pomerium's MCP refresh tokens live for a year, so the error can appear in the middle of a session instead of at the next sign-in. Clients registered with none aren't affected.
- 0.34 also changes licensing for official builds: binaries and container images now use the Pomerium Community Edition License, while the source remains Apache 2.0. Check that before you move production to it.
Why does a client secret matter for MCP refresh tokens?
A refresh token is the long-lived half of an MCP sign-in. Agents and MCP clients keep it on disk or in memory and send it every time the access token runs out, which gives it more chances to end up in a log, a transcript, a crash dump or a config file someone shares. The client secret is what's supposed to make a copied refresh token useless to anyone but the client it was issued to.
- If you run an authorization server for MCP, test that a wrong secret, a missing secret and a secret sent by the wrong method are all refused, for every method you advertise, and don't advertise a method you don't verify. If you run MCP clients, send the secret the way you registered it and keep tokens out of anything an agent writes down.
How do I ask Rightshold about this (free, no key)?
Add the MCP server https://www.rightshold.com/mcp to Claude, Cursor, ChatGPT, Grok or VS Code, then ask: “We upgraded our Pomerium MCP gateway to 0.34.2 to fix CVE-2026-135300 and made users sign in again. Record a receipt for the change with the old and new versions and when the forced sign-in happened.”
{
"tool": "record_action",
"arguments": {
"action_type": "security.patch_applied",
"outcome": "success",
"occurred_at": "2026-11-28T15:00:00Z",
"client_event_id": "pomerium-mcp:cve-2026-135300:2026-11-28",
"summary": "Pomerium MCP gateway upgraded 0.33.6 -> 0.34.2 (CVE-2026-135300, GHSA-2hj6-2qpj-pqj2); MCP refresh tokens issued before the upgrade invalidated by forced sign-in at 15:00 UTC; 2 clients re-registered after invalid_client",
"action_sha256": "<sha256 of the change ticket or upgrade log>"
}
}- Needs your API key (or accept_terms:true once to open a free account; the key comes back once). It returns a ledger-committed receipt of what you submitted and when, kept outside your gateway.
- It doesn't scan Pomerium, check versions or revoke tokens. It proves the record existed at that time and hasn't changed since, not that the upgrade was complete.
Rightshold isn't affiliated with Pomerium or VulnCheck. Details are from GitHub's advisory GHSA-2hj6-2qpj-pqj2, VulnCheck's advisory for CVE-2026-135300, Pomerium pull requests 6787 and 6786 with the fix commit, the v0.34.0 release notes and Pomerium's MCP documentation, all read November 28, 2026. Advisories get updated; confirm affected and fixed versions on the linked pages.
What are the sources?
- GitHub Advisory: GHSA-2hj6-2qpj-pqj2 / CVE-2026-135300, Pomerium MCP token endpoint skips client secret verification
- VulnCheck: Pomerium 0.30.0 before 0.34.0 missing client secret verification via MCP token endpoint (November 23, 2026)
- Pomerium pull request 6787: mcp: verify the client secret for client_secret_basic
- Pomerium v0.34.0 release notes (November 4, 2026)
- Pomerium docs: Model Context Protocol (MCP)
Related
- Can a malicious MCP server steal your OAuth refresh token or client secret?
- Should an MCP server still support dynamic client registration or switch to client ID metadata documents?
- Can a malicious MCP server get your OAuth token for a different MCP server (mcp-go CVE-2026-123272)?
- Give an AI agent a scoped, expiring credential instead of a long-lived API key
Not legal advice. JSON · Markdown · All answers
Get a free API key in one call
No card and no email needed. 100 free credits; the license and policy checks stay free without a key.
curl -s -X POST https://www.rightshold.com/v1/accounts/signup -H "Content-Type: application/json" -d '{"accept_terms":true}'
export RIGHTSHOLD_API_KEY=rs_... # the api_key from the reply (shown once)
curl -s https://www.rightshold.com/v1/licenses/check -H "Authorization: Bearer $RIGHTSHOLD_API_KEY" \
-H "Content-Type: application/json" -d '{"license":"MIT","intended_use":{"commercial_use":true}}'
