Skip to content
CORS Advisory Advanced CVE-2026-11298

Insufficient policy enforcement in Chrome for iOS (CVE-2026-11298)

The iOS WebUI scheme handler drops security headers (CSP, X-Frame-Options) and adds a wildcard CORS header, so if an attacker gets script execution in any chrome:// page they can read data from other chrome:// origins and frame them.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 50 days

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.

Overview: On iOS, CRWWebUISchemeHandler drops HTTP response headers generated by the WebUI backend, completely removing Content-Security-Policy and X-Frame-Options. It instead constructs a response with a hardcoded wildcard CORS header, compromising isolation between different chrome:// origins if an attacker achieves script execution within a WebUI context.

Affected files:

  • ios/web/webui/crw_web_ui_scheme_handler.mm
  • ios/web/webui/url_data_manager_ios_backend.mm

Estimated timestamp from git blame: 2021-03-25

Summary

On iOS, the CRWWebUISchemeHandler class serves chrome:// scheme requests to WKWebView. The current implementation inadvertently strips critical security headers generated by the WebUI backend (such as Content-Security-Policy and X-Frame-Options: DENY) and replaces them with a hardcoded NSHTTPURLResponse. Notably, this hardcoded response includes an overly permissive Access-Control-Allow-Origin: * header, completely breaking the Same-Origin Policy between distinct WebUI origins.

Technical Details

When a chrome:// resource is requested, CRWWebUISchemeHandler delegates the fetch to URLFetcherBlockAdapter, which uses a network::SimpleURLLoader.

The iOS WebUI backend (URLRequestChromeJob in ios/web/webui/url_data_manager_ios_backend.mm) correctly generates necessary security headers for the response.

However, two steps cause these headers to be dropped and replaced with insecure defaults:

  1. Header Dropping: In URLFetcherBlockAdapter::OnURLLoadComplete (ios/web/webui/url_fetcher_block_adapter.mm), the code extracts only the response body string and immediately destroys the underlying loader (url_loader_.reset()). The response headers (url_loader_->ResponseInfo()) are never read or passed to the completion handler.
  2. Insecure Response Construction: Inside CRWWebUISchemeHandler::webView:startURLSchemeTask: (ios/web/webui/crw_web_ui_scheme_handler.mm), the completion block manually constructs an NSHTTPURLResponse from scratch:
OBJECTIVEC
NSHTTPURLResponse* response =
    [[NSHTTPURLResponse alloc] initWithURL:urlSchemeTask.request.URL
                                statusCode:200
                               HTTPVersion:@"HTTP/1.1"
                              headerFields:@{
                                @"Content-Type" : mimeType,
                                @"Access-Control-Allow-Origin" : @"*"
                              }];

Impact

This is a significant defense-in-depth regression that weakens the isolation between chrome:// hosts on iOS.

Standard websites are blocked from navigating to or framing chrome:// URLs by CRWWKNavigationHandler. However, if an attacker manages to achieve script execution in any WebUI context (e.g., through a separate HTML injection vulnerability in chrome://version), they can trivially escalate their privileges:

  • Universal CORS: The Access-Control-Allow-Origin: * header allows the compromised WebUI to use fetch() to read sensitive data from any other chrome:// origin (e.g., chrome://prefs-internals).
  • Cross-Origin Framing: The lack of X-Frame-Options: DENY allows the attacker to embed any other WebUI page within an <iframe>.
  • Missing CSP: The lack of Content-Security-Policy makes the initial exploitation of any WebUI XSS trivial, as inline scripts, eval(), and outbound connections to attacker servers are not blocked.

Potential Reproduction Steps

(Note: These are suggested steps based on static analysis, as our tooling agent cannot execute code).

  1. Navigate to a WebUI page in iOS Chrome (e.g., chrome://version).
  2. Assume an attacker has achieved script execution on this page (e.g., via the console for testing purposes).
  3. Execute a fetch request to another WebUI origin: fetch('chrome://prefs-internals').then(r => r.text()).then(console.log).
  4. Observe that the request succeeds and the cross-origin data is returned due to the wildcard CORS header.
  5. Execute document.body.innerHTML='<iframe src="chrome://prefs-internals">'. Observe that the page is framed successfully due to the missing X-Frame-Options header.

Suggested Fix

  1. Modify URLFetcherBlockAdapter and its completion handler signature to capture and pass the network::mojom::URLResponseHead (or simply an NSDictionary of the headers) obtained from network::SimpleURLLoader::ResponseInfo().
  2. Update CRWWebUISchemeHandler::webView:startURLSchemeTask: to construct the NSHTTPURLResponse using the headers provided by the backend via the adapter, rather than hardcoding its own dictionary. Remove the hardcoded Access-Control-Allow-Origin: * header.

Evaluated with Chrome root at commit: 096fc8fdbfacf2546485756d03f160a3d04fcc9b


Results so far have been promising, but there can be wrong deductions. If this proves to be a false positive, please close as WAI; 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 response adapter discards the original headers and the scheme handler builds a new response with a hardcoded wildcard CORS header instead of passing through the backend's security headers.

Impact

If an attacker already has script execution in any WebUI context, they could read sensitive data from other chrome:// origins and frame them, but this requires a separate initial vulnerability.

What the attacker needed

Script execution in a chrome:// page; iOS Chrome

The fix

The adapter should capture and pass the backend's response headers, and the scheme handler should use those headers instead of hardcoding a wildcard CORS header.

How it was found

  1. Open a chrome:// page in iOS Chrome.
  2. Assume script execution on that page.
  3. Use fetch to request another chrome:// origin.
  4. Observe the cross-origin data is returned.
  5. Insert an iframe pointing to another chrome:// page and observe it loads.

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.

When a web page loads, the server can send extra rules called headers that tell the browser what the page is allowed to do. This report says that on Chrome for iOS, the part that loads internal chrome:// pages throws away those rules and adds a very loose rule that lets any page read data from any other page. If an attacker can run their own code on one internal page, they could then read private information from other internal pages.

What is CORS?

A permissive cross-origin policy lets another site read responses with the user's credentials.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

CORS misconfiguration

The lesson behind this report.

A permissive cross-origin policy lets another site read responses with the user's credentials.