Skip to content
Info disclosure Advisory Advanced CVE-2026-87521

Information leak in WebMCP (CVE-2026-87521)

The browser-side WebMCP code returned the full list of origins authorised to use a script tool to any renderer that was itself authorised to see the tool. A compromised renderer could therefore learn which other origins a victim site had granted access to, leaking cross-origin trust relationships.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 4 months

Project Fortify, an experimental security project, has identified the following potential security issue. If you're a feature owner CC-ed on this bug, please do your best to review these reports without the Chrome Security team. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.

Overview: The browser-side implementation of the WebMCP (Web Model Control Protocol) feature potentially leaks the full Access Control List (ACL) of a script tool to any origin authorized to discover it. This allows a compromised renderer to identify all other origins that a victim has authorized to use a specific script tool.

Affected files:

  • content/browser/renderer_host/model_context_user_data.cc
  • third_party/blink/public/mojom/content_extraction/script_tools.mojom
  • third_party/blink/renderer/core/script_tools/model_context.cc

Estimated timestamp from git blame: 2026-05-01

Summary

A potential logic error in the browser process handling of WebMCP script tool discovery allows an authorized renderer to learn the identity of all other origins authorized to access a given tool. This constitutes a cross-origin information leak of metadata, revealing a victim origin's trust relationships.

Root Cause

In content/browser/renderer_host/model_context_user_data.cc, the GetScriptTools method handles Mojo requests from renderers to discover available script tools. When a tool is visible to the caller (based on the caller's origin being present in the tool's exposed_origins list), the browser process clones the stored blink::mojom::ScriptTool struct and returns it to the caller.

C++
// content/browser/renderer_host/model_context_user_data.cc:212
if (IsScriptToolVisibleToOrigin(rfh->GetLastCommittedOrigin(),
                                t->exposed_origins, caller_origin)) {
  blink::mojom::ScriptToolPtr cloned_tool = t.Clone();
  // ... redaction of other fields occurs here, but exposed_origins is missed
  cloned_tool->tool_owner_frame_token = token;
  all_tools.push_back(std::move(cloned_tool));
}

The blink::mojom::ScriptTool struct (third_party/blink/public/mojom/content_extraction/script_tools.mojom) contains the exposed_origins field, which is an array of all origins authorized to access the tool. The browser process fails to redact this array from the cloned struct before sending it back to the renderer.

Potential Impact

An attacker who has compromised a renderer process (e.g., via a renderer RCE) can discover the identity of other origins that a victim site has authorized for tool access. This reveals sensitive cross-origin relationship metadata across the Site-Isolation boundary.

Suggested Reproduction Steps

  1. A victim page (e.g., https://victim.example) registers a script tool and authorizes access for https://attacker.example and https://friend.example using the exposedTo option in the WebMCP API.
  2. The attacker-controlled origin (https://attacker.example) is loaded in a frame where the tools permissions-policy is enabled.
  3. The attacker compromises the renderer process for https://attacker.example.
  4. From the compromised renderer, the attacker invokes the Mojo method ModelContextHost::GetScriptTools() via the BrowserInterfaceBroker.
  5. The attacker inspects the exposed_origins field in the received Mojo response, discovering that https://friend.example is also authorized for the victim's tool.

Suggested Fix

Modify ModelContextUserData::GetScriptTools in content/browser/renderer_host/model_context_user_data.cc to clear the exposed_origins list in the ScriptTool struct before it is sent to the renderer process. The renderer only needs to know that it has access, not which other origins also have access.

Evaluated with Chrome root at commit: b3153093eb3c78c3e88ccf562bcbc20437a04b0e


Results so far have been promising, but there can be wrong deductions. Feel free to adjust as follows:

  • If you are familiar with the severity guidelines, you may adjust the severity.
  • If this is a false positive, and there's no work to be done, please close as WAI.
  • If there is work to do here but not a vulnerability, please change the issue type to Task/Bug/FR.

Data from false positives will be used to improve accuracy over time. And please feel free to reach out to me directly if you have concerns or feedback on the project.

The original report as published on the Chromium issue tracker. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The browser process cloned the tool struct for the caller but redacted other fields while leaving the exposed_origins array intact, so the full authorisation list crossed back to the renderer.

Impact

An attacker who has already compromised a renderer could learn which other origins a victim site has authorised for tool access, exposing cross-origin relationship metadata across the Site-Isolation boundary; the report notes this is a potential issue and does not demonstrate it.

What the attacker needed

Victim authorises multiple origins for a tool; attacker origin loaded with tools policy; attacker already controls a renderer

The fix

The GetScriptTools method should clear the exposed_origins list before the struct is sent to the renderer, since the caller only needs to know that it has access.

How it was found

  1. A victim page registers a script tool and authorises several origins for it.
  2. The attacker origin is loaded in a frame with the tools permissions policy enabled.
  3. The attacker compromises the renderer process for that origin.
  4. From the compromised renderer the attacker calls the tool discovery Mojo method.
  5. The attacker reads the exposed_origins field in the response and sees the other authorised origins.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A website can register a 'tool' and say which other websites may use it. The browser was meant to tell a caller only that it has access, but it also sent back the whole guest list. Someone who has already broken into one part of the browser could read that guest list and learn which other sites the victim trusts.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.