Skip to content
Access control Advisory Advanced CVE-2026-17809

Insufficient validation of untrusted input in Extensions (CVE-2026-17809)

A compromised renderer could bypass the browser's externally_connectable URL check by committing an error document for a blocked subframe navigation, making the frame's last committed URL appear to be a trusted origin. This could let the attacker open a messaging channel to an extension that trusts that origin.

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: A compromised renderer process can potentially bypass the browser-enforced 'externally_connectable.matches' validation to connect to privileged extensions. By triggering a blocked subframe navigation (e.g. via CSP) that commits an error document in the current process, the attacker's frame gets associated with the blocked cross-origin URL. Since browser-side messaging validation lacks an error document check, the compromised renderer can establish an unauthorized messaging port.

Affected files:

  • extensions/browser/api/messaging/message_service.cc
  • extensions/browser/api/messaging/message_service_bindings.cc

Estimated timestamp from git blame: 2019-12-17

Potential Security Boundary Bypass via Subframe Error Documents

There is a potential vulnerability where a compromised renderer process can bypass the browser-enforced externally_connectable match restrictions to communicate directly with extensions. This could allow an attacker-controlled renderer to impersonate a trusted domain (such as https://victim.com/) to establish messaging channels with extensions that trust that domain.

Root Cause Analysis

When a page establishes a connection to an extension, the browser-side MessageService::OpenChannelToExtension validates that the source page matches the extension's externally_connectable.matches patterns. It performs this validation by checking the source frame's last committed URL:

C++
is_externally_connectable = externally_connectable->matches.MatchesURL(
    source_render_frame_host->GetLastCommittedURL());

However, this validation does not verify if the source frame is currently displaying an error page (e.g. by checking source_render_frame_host->IsErrorDocument()). This can potentially be exploited by a compromised renderer process in the following manner:

  1. Subframe Error Pages are Not Isolated: Subframe error-page process isolation is disabled in Chrome (to minimize process overhead). FrameTreeNode::IsErrorPageIsolationEnabled() returns false for non-main frames.
  2. Commit in Current Process on Blocked Navigation: If a renderer-initiated subframe navigation is blocked (e.g., by CSP ERR_BLOCKED_BY_CSP), ComputeErrorPageProcess() determines that it should commit inside the initiator's process (ErrorPageProcess::kCurrentProcess), which is the attacker's renderer process.
  3. Last Committed URL Set to Unreachable Destination: During the commit of the error page, the renderer overrides the loading URL so that GetLastCommittedURL() on the browser-side RenderFrameHost returns the failed destination URL (e.g., https://victim.com/) rather than the internal chrome-error:// URL. Although the document's origin is sanitized to an opaque origin, the URL remains https://victim.com/.
  4. IPC Security Check Bypass: When a compromised renderer requests extensions.mojom.LocalFrameHost::OpenChannelToExtension, passing an empty source_url will bypass browser-side child process security checks because IsValidSourceUrl() immediately returns true for empty URLs.
  5. Validation Failure: When MessageService processes the request, the relationship is classified as kExternalWebPage. Because GetLastCommittedURL() on the subframe's RenderFrameHost returns the failed destination URL (https://victim.com/), the MatchesURL check evaluates to true, successfully opening the messaging port.

Note: These steps are based on static analysis of the codebase, as our tooling currently does not have the ability to run code and verify this via an active proof of concept.

Potential Attack Steps

  1. An extension with ID X is installed, containing the following manifest entry:

    JSON
    "externally_connectable": {
      "matches": ["https://victim.com/*"]
    }
    
  2. The user navigates to an attacker-controlled site https://attacker.com/p.html that serves a restrictive CSP (Content-Security-Policy: frame-src 'none') and embeds <iframe src="https://victim.com/"></iframe>.

  3. The browser blocks the subframe navigation with ERR_BLOCKED_BY_CSP. The error page commits within the attacker's renderer process. The subframe's RenderFrameHost ends up with GetLastCommittedURL() == "https://victim.com/" and IsErrorDocument() == true.

  4. Using a compromised renderer primitive, the attacker interacts with the frame's associated extensions.mojom.LocalFrameHost interface and invokes OpenChannelToExtension with source_endpoint.type = kWebPage and an empty source_url.

  5. The browser-side validation evaluates the rule against the subframe's committed URL https://victim.com/, passes the MatchesURL check, and establishes a messaging channel to the target extension X.

Suggested Fix

To remediate this issue, MessageService::OpenChannelToExtension should check whether the source RenderFrameHost is an error document, and reject any messaging connection attempts originating from one:

C++
if (source_render_frame_host->IsErrorDocument()) {
  opener_port->DispatchOnDisconnect(kReceivingEndDoesntExistError);
  return;
}

Evaluated with Chrome root at commit: b1520ef4a76878853a31f0943b565e42060edec8


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 browser-side messaging validation checks only the frame's last committed URL and does not verify that the frame is displaying an error document.

Impact

A compromised renderer could impersonate a trusted domain and establish a messaging channel to an extension that trusts that domain; the report is based on static analysis and has not been verified with a working proof of concept.

What the attacker needed

A compromised renderer process; an installed extension trusting a target site; victim visits an attacker page

The fix

The messaging service should reject connection attempts when the source frame is an error document.

How it was found

  1. Install an extension whose externally_connectable matches a target site.
  2. Visit an attacker page that serves a restrictive CSP and embeds the target site in an iframe.
  3. The browser blocks the subframe navigation and commits an error page in the attacker's process, leaving the frame's last committed URL as the target site.
  4. From the compromised renderer, invoke OpenChannelToExtension with an empty source URL.
  5. The browser matches the frame's committed URL against the extension's rules and opens the messaging channel.

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.

Extensions can allow specific websites to talk to them, and the browser checks the website's address before allowing this. The report suggests that if a page tries to load another site but the load is blocked, the browser may still record the blocked site's address on that frame. A malicious page that already controls the browser's rendering process could then pretend to be that trusted site and message the extension.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.