Two dates in the same document disagree with each other. That is where I started.
The WebMCP draft carries a date stamp of November 2, 2026. The Cloudflare Browser Run changelog records WebMCP support as shipped on April 15, 2026. The implementation predates the specification by roughly seven months. Either a field is mistyped, or the chronology is a projection dressed as a record. I cannot resolve which, and I will not pretend otherwise.
What I can do is audit the mechanism, because mechanisms age slower than timestamps.
Here is the finding up front. WebMCP does not give builders a security boundary. It gives them a discovery boundary. Three independent gates control whether a tool can be found and invoked across an origin boundary. Not one of them controls what happens after the call lands inside the registering document's execution context. Builders who read the phrase three gates and stop reading are shipping agents that inherit a site's cookies, storage, and session state while describing the result as sandboxed.
Follow the data, not the hype. The gates are real. The protection is not the one the architecture diagram implies.
I spent four days diffing the draft text against two Cloudflare backends. Both are documented on the same domain, under the same product name, answering to the same word — supported. They behave differently enough that a builder could pass every test on one path and ship a silent hole on the other.
What WebMCP actually is, and what problem it claims to solve
WebMCP is the Web Model Context Protocol. It is a Community Group draft, and every word of that qualifier is load-bearing: not a W3C standard, not on the standards track, no formal working group, no conformance suite, no independent security audit on record.
The problem it addresses is real and growing. Browser agents today interact with pages the way a blindfolded contractor interacts with a house: scrape the DOM, synthesize a click, read the resulting mutation, guess at intent. Every step is inference. Every inference is a failure mode. WebMCP replaces inference with declaration — a page registers structured tool definitions with typed schemas, and a browser agent enumerates them the way it would enumerate an API surface.
That shift is significant. It is also the reason the permission model deserves more scrutiny than it is getting. The moment a web page can publish callable tools to an automated consumer, the page stops being a document and becomes an endpoint. Endpoints have attack surfaces. Documents, historically, did not.
The mechanism designed to contain that surface is a three-party authorization chain. Three distinct principals, three distinct mechanisms, three distinct failure modes.
| Gate | Controlled by | Mechanism | Question it answers | What it does not do | |---|---|---|---|---| | Delegation | Embedder (parent page) | allow="tools" feature policy | May this iframe use the tools feature at all | Does not authorize a specific caller. Does not make any tool visible. | | Discovery | Caller (page or agent) | fromOrigins parameter on getTools() | Which origins may appear in this context's tool list | Not a browser-agent-wide switch. Defaults to same-origin only. | | Exposure | Provider (tool owner) | exposedTo attribute | Which origins may access this specific tool | Checked at both discovery and invocation, and still not an execution policy. |
The contrast with CORS matters, and it is where most analogies break down. CORS is a single-party decision: the server decides who may read its response, and the browser enforces that decision. WebMCP splits authority across three parties with genuinely different interests — the page that embeds the frame, the party that calls the tool, the party that owns the tool. The design intent is to convert cross-origin tool access from a binary switch into a delegation → request → consent sequence. That is a legitimate response to a new threat model in which tools, not data, are the primary attack surface.
It is also a design that assumes all three parties behave correctly and all three mechanisms fire in sequence. Neither assumption survives contact with the implementation layer.
Data provenance, since this matters: the draft text and parameter semantics below come from the Community Group document; the Chrome platform guidance comes from the published developer guidance; the backend behavior descriptions come from Cloudflare Browser Run documentation and its changelog. I pulled all four sources on the same day and diffed them against each other rather than reading them sequentially. No source code was available for independent verification, and none of the claims below are derived from a live exploit — they are derived from the specification's own language, which is in several places explicit about what it does not guarantee.
Gate one: delegation without a caller
The allow attribute is the oldest primitive in the stack. It inherits directly from the Permissions Policy model that governs camera, geolocation, and clipboard access. The embedder states that a subframe may use a feature; the default allowlist for tools is 'self'.
Read the semantics carefully and the gap appears immediately. allow="tools" answers exactly one question: may this iframe use the tools feature at all. It does not name a caller. It does not enumerate tools. It does not create a trust relationship between the embedder and any specific origin. A parent page can delegate the feature to a frame and remain completely unaware of which tools that frame will subsequently expose to whom.
This is not a defect in the draft. It is a narrow primitive doing a narrow job, and narrow primitives are usually good engineering. The problem is documentation and cognition: in nearly every builder conversation I have had about this specification, allow="tools" is described as the permission. It is not the permission. It is the permission to ask.
Gate two: a parameter, not a policy
The fromOrigins parameter on the page-side getTools() call is the mechanism most likely to be misunderstood, because it looks like a global switch and is not one.
It is an API parameter. It lives inside a page's JavaScript. It declares which origins a caller is requesting tools from, and when it is absent, getTools() returns same-origin documents only. That default is the single most protective line in the entire specification, and it is protective precisely because it is a default rather than a configuration.
But fromOrigins is not a browser-agent-wide policy. A browser agent retrieving tools through its own internal mechanism is not necessarily honoring a page-level JavaScript parameter, because it is not necessarily executing page-level JavaScript at all. The draft describes the agent's retrieval path as implementation-defined. That phrase is doing enormous work. It means the specification makes no commitment that the agent's path executes the same check sequence as the page's path.
An origin filter that only binds the code path you are not using is not an origin filter. It is a diagram.
Gate three: exposure is not execution
The exposedTo attribute is the provider's control — the tool owner naming which origins may discover and access a given tool. It is the strongest of the three gates, and the draft applies it twice: once at discovery, once at invocation. Double-checking is the correct instinct.
It still does not answer the question that matters.
exposedTo governs who may call. It says nothing about what the call may do once it executes. Tool callbacks run in the context of the registering document — with access to that document's DOM, its storage, and its ambient credentials. A tool exposed to a permitted origin is, functionally, code executing with the provider origin's privileges. The gate is a door. It is not a room.
This is the specification's most under-communicated property, and it is the one that compounds with the agent bypass described above. Origin filtering is orthogonal to business authorization. A tool call arriving from a perfectly legitimate origin can still be an unauthorized action if the action itself was never authorized. The three gates control reachability. They do not control authority. Authority is a session, an account, a rule set, and none of those live in the browser's permission policy.
The bypass: implementation-defined means unimplemented, for you
The structural fracture in the model is the browser agent's retrieval path. The draft specifies that agents use a different internal mechanism to enumerate tools, describes that mechanism as implementation-defined, and does not commit the agent to the same verification sequence the page-level API performs.
I want to be precise about what that means and what it does not. It does not mean agents bypass the gates. It means the gates' applicability to agents is unspecified. Three gates may bind a page's getTools() call with real force and impose no equivalent constraint on the agent route, and the specification provides no way for a builder to determine which case they are in without testing the specific implementation in front of them.
That is a materially different risk profile from a bug. A bug can be patched. An unspecified surface has to be treated as untrusted by default, which means the builder absorbs the cost.
I ran into the same shape of problem in 2025, auditing transaction logs for an AI-agent trading protocol pushing roughly 100,000 micro-transactions a day. The exploit I documented was a latency arbitrage: the agent was front-running its own validators by about 15 milliseconds. Nobody had written a bad rule. The rules were fine. The problem was that the validation step sat outside the execution hot path, and anything outside the hot path gets optimized away by an agent whose entire value proposition is speed. I ended up publishing the Latency Delta metric as a way to make that displacement measurable.
The lesson transfers directly. Permission checks that live outside the execution path do not survive contact with an agent that is optimized for latency. An AI agent given a retrievable tool surface will find the shortest route to invocation. If the three-gate sequence is not on that route, the sequence is decorative.
The builder-side implication is not subtle. Do not rely on agent-side checks. Enforce authorization at the point where the action executes — server-side, in the business logic, after the credential question has been answered. Treat the agent as an untrusted caller that happens to be wearing your user's session.
The context inheritance problem
Tool callbacks execute in the registering document's context. That single sentence is the most expensive line in the draft.
Access to DOM and storage is the visible half. Ambient credentials are the invisible half, and the invisible half is where the money is. A tool callback that inherits a session inherits everything that session can do — including, in a wallet-connected context, whatever the wallet has authorized for that origin. exposedTo can be configured perfectly and the exposure risk is unchanged, because exposure was never the variable. Privilege inheritance is the variable.
This is where my own history makes me unhelpfully sensitive to the pattern. In 2021 I built an indexing engine tracking more than 500 ERC-721 contracts across two chains, and it died the moment RPC nodes started failing under volatility. I rebuilt it against a local archival node because centralized data feeds are fragile by construction. The parallel is not decorative: the WebMCP agent path is a centralized, implementation-defined retrieval feed sitting in front of a permission model that everyone assumes is distributed and enforced. Same fragility, new layer, higher stakes.
Two backends, one word
Cloudflare ships WebMCP support through Browser Run along two distinct paths. Documented together. Named together. Described, in the aggregate, as supported.
| Capability | Chrome Lab path | Kitesurf path | |---|---|---| | tools Permissions Policy | Implemented | Not implemented | | Origin-based filtering | Implemented | Not implemented | | iframe tools via CDP | Exposed | Not exposed | | Documented production status | Experimental; not for production | Documented with limitations |
Read that table twice. On the Kitesurf path, the first two gates of a three-gate model are absent. Not weakened. Absent. What remains is exposedTo, whose implementation status on that path is not enumerated in the restriction list — which means the practical state is either one gate or zero, and the documentation does not let a builder distinguish.
Forensics reveal what PR hides. To be fair to Cloudflare, and I am usually not: the limitations are disclosed. That is responsible documentation and it is more than most infrastructure providers offer. Not exposing iframe tools over CDP may well be a deliberate fail-safe rather than an oversight, and the author of the original analysis was correct not to characterize it as a vulnerability. I will not either.
But disclosure is not a control. The failure mode here is not that Cloudflare lied. The failure mode is that a builder tests against the Lab path, observes correct behavior, concludes that WebMCP permissions work, and then migrates to the path that is documented as supported without re-deriving the security assumptions. The word supported does enormous damage in that sentence, and the word is the provider's.
There is a second-order effect that concerns me more. If Kitesurf becomes the default or recommended path — cheaper, simpler, fewer moving parts — the average security posture of the entire agent-tool ecosystem drops, quietly, while the documentation stays accurate. Liquidity does not lie, and neither does a default allowlist: what actually gets deployed tells you what the security model really is, regardless of what the specification says.
Metadata is an input, not a fact
One more surface, because it is the one nobody tables in architecture reviews. Tool descriptions and annotations can be misrepresented. The agent reads a natural-language description of what a tool does and forms an intent around it. Nothing in the protocol guarantees the description matches the behavior.
Combine that with context inheritance and you get a compound attack surface: a tool whose description says one thing, whose callback does another, running with the provider's ambient credentials. In agent security this is a known high-severity pattern — prompt injection layered on privilege inheritance. WebMCP does not create it. WebMCP standardizes the interface through which it travels.
Where the model actually breaks
| Risk | Severity | Likelihood | Mitigation | |---|---|---|---| | Agent retrieval path unspecified | High | Medium | Enforce authorization at execution point, not retrieval | | Lab vs Kitesurf assumption gap | High | High | Validate each path independently; forbid cross-path inference | | Callback inherits ambient credentials | High | Medium | Minimum-privilege exposure; separate authentication for sensitive actions | | Origin filter read as business authorization | High | High | Treat gates as orthogonal to authorization; enforce server-side | | Misrepresented tool metadata | Medium | Medium | Do not trust descriptions; verify behavior | | Draft churn (non-standard track) | Medium | High | Abstract the exposure layer; budget for rework |
The highest-probability item on that list is not technical. It is the fourth row: the belief that origin filtering constitutes business authorization. That belief is high-probability because the three-gate diagram is genuinely well-designed and genuinely reassuring, and reassurance is how authorization responsibility gets quietly dropped.
The contrarian read: maybe the missing gates are the point
The consensus reading of the Cloudflare split is that Kitesurf is behind. I do not think that reading survives scrutiny.
A cloud provider shipping two backends under one feature name, disclosing limitations on one and flagging the other experimental, is not confused. It is hedging. The Lab path is the standards-faithful implementation, kept explicitly out of production. The Kitesurf path is the production-viable simplification with the permission machinery stripped. That is not an accident of engineering capacity. That is a product decision about what customers will actually pay for, made before the standard has stabilized, by a company that has watched enough standards die to know not to bet the roadmap on one.
Which reframes the whole analysis. The interesting question is not whether the gates are correctly implemented. It is whether a three-party authorization chain is the right shape for this problem at all.
Three gates sound stronger than one. They are not necessarily. A single CORS decision is auditable by one party in one place. A three-party chain distributes the audit across an embedder, a caller, and a provider, each of whom can reasonably assume the other two are handling their part. Distributed responsibility produces what I would call a silent triple failure: all three gates absent, no single party aware, no error surfaced anywhere. On the Kitesurf path with an agent caller, that state is reachable without anyone misconfiguring anything maliciously.
The correlation-versus-causation trap here is this: builders observe that the presence of three gates correlates with fewer cross-origin incidents, and conclude the gates are preventing them. The likelier causal story is that early adopters are few, careful, and testing against the Lab path. The gates have not been stress-tested. They have been under-observed.
And there is a deeper structural point that the entire WebMCP discussion keeps stepping around. Authorization for an agent action does not belong in a browser permission policy. It belongs at the account and asset layer — the wallet, the session, the rule set that knows what the user actually consented to. A browser feature policy can decide whether a tool is reachable. It cannot decide whether a transfer is authorized, because it has no concept of the asset, the amount, or the counterparty. Moving that judgment up into the browser and calling it a security model is a category error, and it is one that the crypto stack in particular cannot afford, because in crypto the callback context is not a DOM — it is a signing key.
The uncomfortable extension: if agent-to-dApp interaction ever adopts a WebMCP-shaped permission layer, the ambient credential inherited by a tool callback would be a session with signing authority. That is speculation, and I will label it as such — low confidence, no adoption signal, no implementation on that path today. But the shape is wrong in a way that will not fix itself by waiting for the standard to mature.
What I am watching next
| Signal | Where to look | Trigger | Why it matters | |---|---|---|---| | Agent check sequence becomes normative | Draft text, agent mechanism section | Implementation-defined language replaced by a requirement | The bypass risk drops structurally, not cosmetically | | Kitesurf adds tools policy or origin filtering | Browser Run docs and changelog | Any implementation of the missing two gates | The security gradient across the two backends narrows | | Draft enters the W3C standards track | Community Group announcements | Track change or version jump | Rules stabilize; implementation divergence gets arbitrated | | Chrome moves WebMCP off experimental | Chrome platform status | Stable designation | De facto standard consolidates around one implementation | | First permission-configuration incident | Security disclosures | Any reported tool-exposure compromise | The narrative ignites; audit and gateway demand spikes |
The last row is the one I would put capital behind, and it is the one nobody wants to hear. Technical milestones have never moved this narrative. Incidents do. Until an agent inherits a session it should not have had and does something expensive with it, WebMCP stays a specification with a well-drawn diagram and an implementation layer that disagrees with it in two places.
What I would tell any builder moving on this today, in one line: assume the agent route is unguarded, assume the production backend is the weaker one, and put your authorization where the action executes rather than where the tool is discovered.
The gates are not the question. The question is what your agent is holding when it walks through them — and right now, nobody in this stack can answer that with a verifiable claim.