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

Information leak in ControlledFrame (CVE-2026-87435)

Custom content scripts registered by an Isolated Web App are bundled into a single shared memory region and sent to every guest process owned by that app, regardless of which frame the scripts were intended for. A compromised guest renderer process could read this shared memory to obtain sensitive script bytes meant for other frames.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 2 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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.

Overview: An information disclosure vulnerability potentially exists in the Isolated Web App (IWA) <controlledframe> implementation where custom content script source code can leak to sibling guest processes. Because content script serialization and updates are origin-scoped rather than guest-instance-scoped, all scripts registered by an IWA are bundled into a single shared memory region and sent to every guest process owned by that IWA. A compromised guest process can map and read this shared memory region to retrieve sensitive script bytes intended for other frames.

Affected files:

  • extensions/browser/user_script_loader.cc
  • components/guest_view/browser/guest_view_base.cc
  • extensions/browser/api/guest_view/web_view/web_view_internal_api.cc
  • extensions/browser/user_script_manager.cc
  • extensions/browser/guest_view/web_view/web_view_content_script_manager.cc

Estimated timestamp from git blame: 2024-01-22

Summary of the Potential Issue

An architectural information disclosure vulnerability potentially exists in the Isolated Web App (IWA) <controlledframe> implementation. The issue allows custom content script source code (including inline script bytes) to leak across sibling guest processes.

Because content script serialization and distribution are scoped to the IWA's origin (HostID of type kControlledFrameEmbedder) rather than to specific guest instances, all scripts registered by an IWA across different <controlledframe> elements are bundled into a single shared memory region. This region is then sent to every guest process owned by that IWA. A compromised guest process can read this shared memory mapping and retrieve sensitive script bytes intended only for other frames.

Root Cause Analysis

  1. Origin-Scoped User Script Loader: In extensions/browser/user_script_manager.cc:74-89, there is exactly one EmbedderUserScriptLoader per HostID:

    C++
    EmbedderUserScriptLoader* UserScriptManager::GetUserScriptLoaderForEmbedder(
        const mojom::HostID& host_id) {
      auto it = embedder_script_loaders_.find(host_id);
      if (it != embedder_script_loaders_.end()) return it->second.get();
      ...
      return CreateEmbedderUserScriptLoader(host_id);
    }
    

    For any <controlledframe> element embedded inside an IWA, the generated HostID is of type kControlledFrameEmbedder and its ID is the serialized IWA origin (e.g., "isolated-app://iwa-A"):

    C++
    // extensions/browser/api/guest_view/web_view/web_view_internal_api.cc:119-125
    if (embedder_rfh->GetWebExposedIsolationLevel() >=
        content::WebExposedIsolationLevel::kIsolatedApplication) {
      const std::string origin =
          embedder_rfh->GetMainFrame()->GetLastCommittedOrigin().Serialize();
      return extensions::mojom::HostID(
          extensions::mojom::HostID::HostType::kControlledFrameEmbedder, origin);
    }
    

    As a result, all <controlledframe> elements within the same IWA share a single, unified EmbedderUserScriptLoader.

  2. Broadcasting to All Owned Guests: In UserScriptLoader::SendUpdate() (extensions/browser/user_script_loader.cc:580-603), the recipient filter only checks if the guest's owner_host matches the loader's HostID ID:

    C++
    if (owner_host != host_id().id) {
      return SendUpdateResult::kNoActionTaken;
    }
    

    Because all guest views embedded in the same IWA share the same owner_host (the IWA's serialized origin), this check passes for all guest processes owned by the IWA. Consequently, the entire serialized shared memory region—containing all scripts registered by any guest frame—is transmitted to every guest process.

  3. Renderer Memory Mapping: Upon receiving the update, the guest renderer process maps the shared memory region via UserScriptSet::UpdateUserScripts():

    C++
    shared_memory_mapping_ = shared_memory.Map();
    

    While the in-process execution gate (UserScriptInjector::CanExecuteOnFrame) correctly prevents the execution of unauthorized scripts, the script contents remain resident in the guest process's address space.

Suggested Potential Exploitation Steps

(Note: These are potential steps, as our analysis is static and our tooling agent does not have the ability to execute code or run a live proof of concept.)

  1. Setup: An IWA page embeds two <controlledframe> guest views with distinct storage partitions:
    • cf1 (trusted partition) loads https://trusted.example and has a custom script added via addContentScripts containing a secret API key or token in its inline code payload.
    • cf2 (untrusted partition) loads an attacker-controlled origin.
  2. Process Separation: The two guest views are placed into separate guest renderer processes due to their distinct partitions.
  3. Data Broadcast: The browser serializes all scripts for the IWA origin into a single ReadOnlySharedMemoryRegion and transmits it to both cf1's and cf2's renderer processes.
  4. Exfiltration: An attacker who compromises the guest renderer process of cf2 (renderer RCE) can read the memory space of their own process, locating the mapped ReadOnlySharedMemoryRegion and extracting the raw script bytes containing the sensitive API key/token intended only for cf1.

Impact

Cross-instance information disclosure from a compromised guest renderer. This breaks the isolation boundary between <controlledframe> storage partitions when custom content scripts are used, potentially leaking sensitive credentials or developer-authored logic across frames.

Suggested Fix

To resolve this issue, the browser should ensure that the shared memory region delivered to a guest process only contains scripts that the specific guest process is authorized to execute.

This could be achieved by:

  1. Keying EmbedderUserScriptLoader instances more granularly, such as combining the HostID with the guest's instance/view ID or storage partition.
  2. Or filtering the scripts during the serialization or delivery phase so that a distinct shared memory region is built and sent for each unique set of authorized scripts per guest process.

Evaluated with Chrome root at commit: 84065d9121f6e48f67755f0ae963cc09617e5c85


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

Likely the user script loader is keyed only by the IWA's origin rather than by individual guest instance, so all scripts for that origin are broadcast to every guest process.

Impact

A compromised guest renderer could read script bytes intended for other frames, breaking isolation between storage partitions and potentially leaking credentials or logic; the text notes this is a potential issue from static analysis without a live proof of concept.

What the attacker needed

IWA embeds multiple controlledframe views; Attacker can compromise a guest renderer process; Custom content scripts contain secrets

The fix

The browser should key user script loaders more granularly (e.g., by guest instance or storage partition) or filter scripts during serialization so each guest process receives only the scripts it is authorised to execute.

How it was found

  1. An IWA page embeds two controlledframe guest views with distinct storage partitions.
  2. One view loads a trusted origin and has a custom script containing a secret added via addContentScripts.
  3. The other view loads an attacker-controlled origin.
  4. The two views are placed into separate guest renderer processes due to their distinct partitions.
  5. The browser serializes all scripts for the IWA origin into a single shared memory region and sends it to both renderer processes.
  6. An attacker who compromises the untrusted view's renderer process can read the shared memory region and extract the secret script bytes.

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.

An Isolated Web App can embed multiple web views, each potentially showing different content. The app can add small scripts to these views, and some scripts might contain secrets like API keys. The bug is that the browser sends all these scripts to every view's process, not just the one that should run them. If an attacker can take over one view's process, they can read the scripts meant for other views.

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.