2026-11-26 15:49 UTC

Stream Vessel describes per-user trusted redirects for MCP OAuth

state: watchingheat: mediumuncertainty: mediumrelevance: mediummcp oauth-securityAlexander LoginovStream Vessel

What is this?

On November 4, 2026, Alexander Loginov of Stream Vessel published a first-party account of a design for its MCP server’s OAuth sign-in. The server keeps its operator-managed redirect allowlist and local loopback addresses, while allowing each signed-in user to add up to 10 exact HTTPS redirect addresses for their own account. The post describes checking trust at authorization, when the user is known, and using a refusal page on Stream Vessel’s domain for untrusted addresses. It says codes and errors are not redirected to untrusted addresses, and describes safeguards including typed-host confirmation, consent-screen disclosure, email notifications, and revoking grants when an address is removed. The linked background includes prior security research and standards; the specific design and its protections are described by Stream Vessel, not independently validated in the supplied evidence.

Why it matters

This is a practical security and access trade-off for MCP OAuth: fixed redirect allowlists can block a user’s own agent, but accepting arbitrary callbacks can expose authorization codes to phishing. Stream Vessel’s approach puts the additional trust decision in the signed-in user’s hands while retaining server-wide controls. If its protections work as described, it could make personal or self-built MCP clients easier to connect without simply opening redirects to everyone. The source is a company implementation report, not independent testing; it also acknowledges that a user persuaded to trust an attacker’s address can still be phished.

Current assessment

The new item is Stream Vessel’s November 4 first-party description of per-user trusted redirect URIs for its MCP OAuth flow. The proposed balance is to retain the operator allowlist and loopback support, but let a user add exact HTTPS callbacks for their own account (up to 10), with the decision made at authorization after the user is known. Stream Vessel says untrusted requests are refused on its own host, including error paths, and describes typed-host confirmation, consent text showing the callback and why it is trusted, email alerts, and revocation of grants and pending codes on removal. These are claims about Stream Vessel’s design; no independent implementation review, test results, or adoption evidence is supplied. The post frames the problem with cited background: a May 2026 study reportedly found arbitrary redirect acceptance at 114 of 119 tested OAuth-enabled MCP servers, while restrictive allowlists can exclude custom clients. Those measurements and prior incident descriptions are reported in the company article and are not independently checked here. The design does not eliminate social engineering: a user who is convinced to trust an attacker-controlled host can still authorize it. Useful follow-up: verify the live flow and edge cases, especially authorization errors and revocation, and look for independent security review or evidence of adoption. The supplied web results mainly repeat or surface the original article and do not provide such validation.

Measured heat

now 0 pts/hpeak 0 pts/hcomments 0/hpeers p10momentum: steady2 platformsage 554h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

11-03 13:00⭐ origin echo-reconstructedThe blog is the original source of the specific design and argument: “So we kept self-registration and let each user decide at sign-in, for
Alexander Loginov on blog (echo) · attributed from hn.story.50367004
—
11-04 15:30first on hacker news · published · +26.5hLetting users trust their own MCP clients, without opening a phishing hole
isalexlog
—
11-04 15:30amplified on hacker news 👑hn.story.50367004
isalexlog
peak 35 · 6 comments · 100% of case engagement
11-04 16:22our radar first saw it · +27.4hdiscovery anchor: hn.story.50367004—
pace: p69 vs 1845 stories at the 336h mark (now 554h old) — ahead of claude-agents-build-csharp-libraries (1.0x), behind breakable-js-claude-code-build (1.0x)

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnLetting users trust their own MCP clients, without opening a phishing hole
Retrieved article excerpt

Open article · Retrieved 2026-11-04T16:25:28.265884+00:00

[Stream Vessel](https://streamvessel.com/) / [Blog](https://streamvessel.com/blog)

# Letting users trust their own MCP clients, without opening a phishing hole

November 4, 2026
· Alexander Loginov ·
10 min read

## The problem

You run your own agent: a Slack bot, a service on a VPS, an MCP client you wrote over a weekend. You want it on your files, which on [Stream Vessel](https://streamvessel.com) means your own S3 bucket, where an agent can read, write and delete through the MCP server. The agent speaks MCP’s standard OAuth sign-in: it registers itself, opens a browser, you click Approve, it gets a token.

It fails at step one. At registration the agent named its *redirect URI*, the address your browser returns to after you approve, carrying a one-time *authorization code* the agent swaps for a token. Yours is `https://agent.yourhost.example/callback`; the answer is `invalid_redirect_uri`. The server only accepts addresses on its operator’s *allowlist*: Claude, ChatGPT, Cursor, VS Code and a few others. Getting yours added means asking the operator to change a config file.

The server cannot simply accept any address. That list is the addresses the post office will deliver your house keys to. Without it, a stranger registers a fake “Claude” that has the keys sent to their place, and phishes your storage with one link. So the server is either closed to you or unsafe for everyone.

Both failures are common. On the closed side, this is what people run into:

> “The redirect URI is not allowed, the URL is not part of Atlassian whitelisted domains for registered MCP Clients.” — an error users, Cursor’s among them, reported in the [Atlassian developer community](https://community.developer.atlassian.com/t/issue-with-oauth-redirect-uri-whitelisting-for-atlassian-remote-mcp-server/93721)

> “…each host application must have a registered GitHub App (or OAuth App) to authenticate on behalf of the user.” — [GitHub MCP server, policies and governance](https://github.com/github/github-mcp-server/blob/main/docs/policies-and-governance.md); otherwise you fall back to a personal access token

On the open side, a [May 2026 study](https://arxiv.org/html/2605.22333v1) that tested 119 OAuth-enabled MCP servers found registration endpoints on 114 of them, 95.8%, that

> “accept arbitrary redirect\_uri values from anonymous requesters.”

## The attack: one link, one click, someone else’s bucket

Say your server accepts any registration and any redirect address. An attacker with no account on it can take over a user’s access in four steps:

1. Register a client named “Claude” whose redirect URI is `https://evil.example/cb`. Open registration is anonymous, by design.
2. Send a signed-in user a normal-looking `/oauth/authorize` link: “Reconnect your storage to Claude”.
3. The user sees your real consent screen, on your real domain, in their real session, and clicks Approve.
4. The code lands at `evil.example`. The attacker trades it for a token and is now the user.

PKCE does not help: it lets only the client that started a flow finish it, and the attacker started this one. The client name is self-declared and proves nothing. The consent screen shows the redirect host, but `claude-connect.app` passes a glance. It is the same trick as the fake-app approval prompts sent to Microsoft 365 users: a real page and a real Approve; there the attacker uses an app the platform registered, here an address the server should never have accepted.

The user does approve, but on false information. A redirect allowlist is what makes an approval mean what the user thinks it means: whatever the name says, the keys can only go where the list says.

This is not hypothetical. In January 2026 [Obsidian Security](https://www.obsidiansecurity.com/blog/when-mcp-meets-oauth-common-pitfalls-leading-to-one-click-account-takeover) reported this chain against Square’s MCP server: self-registration accepted any redirect address, and one click exposed a merchant’s profile, transactions and bank details. In the researchers’ words, “any user who had previously authorized the Square MCP server was vulnerable.” Square’s fix, they note, only applied to newly registered clients.

Others found the same chain on [an MCP proxy in front of a company’s single sign-on](https://hackt.us/full-account-takeover-on-an-mcp-oauth-proxy-why-pkce-can-t-save-you), worth a 24-hour access token and a 14-day refresh token per click, and across [bug-bounty programs](https://blog.sicks3c.io/research/ato-via-open-mcp-dcr/), where it was sometimes waved off as social engineering. SickSec’s answer: the victim never leaves the trusted domain.

A quieter problem rides along. When a request fails a check after its redirect address was accepted, the error is sent to that address. So a server that accepts any address is an open redirector on its own domain: a crafted authorize link with a bad scope bounces visitors to any site, under your hostname. RFC 9700 describes exactly this case.

## What the spec says, and what servers actually do

The MCP spec names the risk and leaves the policy to each server. Its [security considerations](https://modelcontextprotocol.io/specification/draft/basic/authorization/security-considerations) say authorization servers MUST validate exact redirect URIs, SHOULD only redirect automatically to a URI they trust, and MAY instead inform the user and let them decide. The last two are RFC 9700’s sentences, word for word. What “trust” means is left open.

Registration is shifting too. The [2026-07-28 client registration page](https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization/client-registration) deprecates Dynamic Client Registration (a client registering itself over an API, no human involved) for Client ID Metadata Documents (CIMD), where the client id is an HTTPS URL to a document listing its redirect URIs. CIMD says who publishes a client, not whether this user meant to connect it.

The OAuth working group has been here. In a [December 2025 thread on the IETF OAuth list](https://mailarchive.ietf.org/arch/msg/oauth/zDCwUCE4_dzv73lG2_NXzEXYLME/), Warren Parad argued that unauthenticated registration turns an MCP authorization server into an open redirector. Aaron Parecki’s quoted reply points to RFC 9700 §4.11.2, which starts from exactly that setup.

In practice, servers sit at one of two poles:

| Approach | Example | Who can connect | Phishing exposure |
| --- | --- | --- | --- |
| Fixed allowlist, set by the operator | [pgEdge Postgres MCP server](https://docs.pgedge.com/pgedge-postgres-mcp-server/development/guide/auth_oauth/): self-registration is on, but the registered URI must be on its list (Claude’s callback and two loopback URIs by default) | Only listed clients; anything else needs a config change | Low |
| Whatever the client registered | 114 of the 119 servers tested in the May 2026 study | Any client | High: the attack above |

Loopback means `localhost` or `127.0.0.1`: an app on the user’s own machine, waiting for the browser to come back.

The first pole costs real users, and clients will not fix it for you. A [Claude Code issue](https://github.com/anthropics/claude-code/issues/66511) from June 2026 reports that organizations with exact-match redirect allowlists cannot sign in from Claude Code, because its `http://localhost:<port>/callback` host and path are fixed. It was closed as not planned in July 2026. The server has to move.

## This is not a new idea

Letting users vouch for their own app’s callback is old. [GitHub](https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/creating-an-oauth-app) has developers create an OAuth app and type in its callback URL. The MCP spec’s [pre-registration option](https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization/client-registration) describes a server page where users register a client by hand. And an organization can [add trusted redirect domains](https://support.atlassian.com/security-and-access-policies/docs/available-atlassian-mcp-server-domains/) to Atlassian’s MCP server. None of these fit a client that registers itself anonymously: the first two need a client id made somewhere else, and Atlassian decides for a whole organization. So we kept self-registration and let each user decide at sign-in, for their own account, beside the server-wide list.

## Our design: trust is per user, decided at sign-in

We keep the operator’s allowlist and loopback for local clients, unchanged and open to every account. On top of it, each user can trust a handful of exact https redirect addresses for their own account; ours caps at 10. On Stream Vessel that is “Trusted app addresses” on the MCP page of the [web app](https://app.streamvessel.com).

The Trusted app addresses card on Stream Vessel's MCP page, listing two trusted addresses with a field to add another

The list lives on the MCP page, and only the user's own browser session can change it.

The key move is *when* the check runs. Registration happens before anyone signs in, so it cannot know whose list to consult. So registration accepts any https URI, and the decision waits for the authorize page, where the user is known:

The authorize decision. On the allowlist or loopback: consent, then the code goes to the app. Otherwise, signed out: sign in, then the request repeats. Signed in and on this user's own list: consent, marked trusted by you. Not on it: a refusal page on our host, where the user can type the host to trust it and retry.


A code reaches only an address every account or this user trusts.

One rule sits under every branch: no code and no error is ever redirected to an address unless every account or this user trusts it. Before sign-in no user’s list applies, so even the OAuth library’s own validation errors (a bad PKCE challenge, an unknown scope) wait for sign-in, and a refusal is a page on our host. That closes the open-redirect hole along with the phishing one, and it covers the Deny button too: n8n’s [CVE-2026-42230](https://github.com/n8n-io/n8n/security/advisories/GHSA-f6x8-65q6-j9m9) (April 2026) sent users who denied consent straight to an attacker’s registered address.

The refusal page: the app's host and full address shown as text, the signed-in account, a warning, and the host typed in to enable Trust and continue

The refusal page. Nothing went to the app; trusting it takes typing the host.

## Seven ways around it, each closed

Most of these rules came from trying to break the first version.

- **Only the user’s own browser session changes the list**, never an app or API token, so a stolen token cannot widen where the user’s codes may go.
- **Adding from the refusal page means typing the host.** The page shows the host, the full address as plain text (never a link), the account it would join, and a warning: if someone sent you this link, close the page. “Trust and continue” stays disabled until the host is typed, so one click from a phishing email is not enough.
- **The consent screen names this sign-in’s redirect, and why it is allowed.** A client can register several addresses at once, so it could list `claude.ai` beside its own. The screen shows only the one this sign-in returns to, and its basis: on the allowlist, loopback, or “you trusted this address yourself on 3 Nov 2026”. The spec requires showing the host for metadata-document clients, though the May 2026 study found 60.5% of tested servers don’t; the basis is what makes it mean something.
- **Every addition is emailed, and audited while the activity log is on.** The email leads with the host, says when and to which account, and keeps the full address from turning into a link. It is the signal a phished user would otherwise never get.
- **Removing an address cuts the app off, even mid-sign-in.** It revokes every grant (an approval the user gave) through that address and drops codes approved but not yet exchanged. A code lives about a minute; without this, a code in flight becomes 
isalexlog356
🟧 echo.blog ⭐The blog is the original source of the specific design and argument: “So we kept self-registration and let each user decide at sign-in, for Alexander Loginov——

Interpretation history

Decision trace