Skip to content
XSS Advisory Advanced CVE-2026-17669

Inappropriate implementation in Chrome for iOS (CVE-2026-17669)

The Translate feature on iOS loads runtime libraries via XMLHttpRequest from within an isolated world, but because iOS isolated worlds share the page's Service Worker, a malicious site can intercept those requests and return arbitrary JavaScript. That script then executes via new Function() in the privileged isolated world, potentially giving access to native WKScriptMessageHandler handlers for password manager, autofill, and frame management.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 3 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 Translate feature on iOS fetches runtime libraries via XMLHttpRequest and executes them within an isolated world. Because iOS isolated worlds share the page's Service Worker, a malicious site can intercept these requests to execute arbitrary JavaScript in the privileged isolated world context.

Affected files:

  • components/translate/core/browser/resources/translate.js
  • components/translate/ios/browser/translate_java_script_feature.mm
  • components/translate/ios/browser/translate_controller.mm
  • components/translate/ios/browser/ios_translate_driver.mm

Estimated timestamp from git blame: 2024-03-14

Potential Vulnerability: Isolated World Code Execution in Translate for iOS

Root Cause

In components/translate/core/browser/resources/translate.js, the cr.googleTranslate.onLoadJavascript function fetches external scripts using XMLHttpRequest and executes the response using new Function():

JavaScript
onLoadJavascript(url) {
  if (!url.startsWith(securityOrigin)) {
    // ... error handling ...
    return;
  }
  const xhr = new XMLHttpRequest();
  xhr.open('GET', url, true);
  xhr.onreadystatechange = function() {
    if (this.readyState !== this.DONE) return;
    if (this.status !== 200) { /* ... */ return; }
    new Function(this.responseText).call(window);
  };
  xhr.send();
}

On iOS, this Translate bundle is injected into web::ContentWorld::kIsolatedWorld (which maps to WebKit's WKContentWorld.defaultClientWorld). While this world provides JavaScript namespace isolation, it shares the page's security origin and its Service Worker registration. Consequently, an XMLHttpRequest issued from this isolated world is treated as a subresource request of the page and is routed through the page-registered Service Worker's fetch event.

While Desktop Chrome (Blink) mitigates this by setting a SkipServiceWorker flag on isolated-world requests, WKWebView on iOS lacks an equivalent mechanism to bypass Service Workers for requests initiated via JavaScript inside an isolated world.

Potential Attack Scenario

  1. An attacker serves a malicious page that registers a Service Worker.
  2. The Service Worker's fetch handler intercepts requests to https://translate.googleapis.com/ and returns a malicious JavaScript payload.
  3. The Translate feature is triggered (either automatically or via user gesture).
  4. Chrome injects the Translate bundle into the isolated world.
  5. The script calls onLoadJavascript to fetch its runtime library from translate.googleapis.com.
  6. The XHR is intercepted by the attacker's Service Worker, which returns the malicious payload.
  7. The payload is executed via new Function() inside the privileged kIsolatedWorld context.

Potential Impact

Successful code execution within kIsolatedWorld allows an attacker to bypass the primary defense-in-depth boundary between web content and the iOS browser process. The attacker gains access to privileged native WKScriptMessageHandler handlers, such as:

  • Password Manager: Access to handlers like PasswordFormSubmitButtonClick to spoof or intercept credential submissions.
  • Autofill: Interaction with form activity tracking and data extraction handlers.
  • Frame Management: Access to the 128-bit unguessable isolated-world frame token via __gCrWeb.getFrameId().

Because these handlers run in the unsandboxed browser process on iOS, this vulnerability represents a significant escalation of privilege from standard web content.

Note: These are potential steps based on code analysis; our current environment does not support running code to verify this with a Proof of Concept.

Suggested Fix

Translate's iOS implementation should avoid using XMLHttpRequest from within the isolated world to load trusted code. Potential remedies include:

  1. Proxying library loads through the browser process via a dedicated script message, where the browser process can fetch the script using its native network stack (bypassing the renderer's Service Worker) and then inject it into the isolated world.
  2. Modifying translate.js on iOS to use a mechanism that ensures the requested URL is fetched from a trusted context.

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 Translate bundle in an iOS isolated world uses XMLHttpRequest to fetch its runtime library, and WKWebView routes that request through the page's Service Worker, unlike Blink which sets a SkipServiceWorker flag.

Impact

Successful code execution in the isolated world could let an attacker bypass the boundary between web content and the iOS browser process and reach privileged native handlers for password manager, autofill, and frame management; the report notes these are potential steps from code analysis and were not verified with a proof of concept.

What the attacker needed

Victim visits attacker-controlled page; attacker page registers a Service Worker; Translate feature is triggered

The fix

Translate on iOS should stop loading trusted code via XMLHttpRequest from the isolated world, for example by having the browser process fetch the script with its native network stack and inject it, or by using another mechanism that fetches from a trusted context.

How it was found

  1. An attacker serves a malicious page that registers a Service Worker.
  2. The Service Worker's fetch handler intercepts requests to the Translate library host and returns a malicious JavaScript payload.
  3. The Translate feature is triggered, either automatically or via user gesture.
  4. Chrome injects the Translate bundle into the isolated world.
  5. The script calls onLoadJavascript to fetch its runtime library.
  6. The XHR is intercepted by the attacker's Service Worker, and the payload is executed via new Function() inside the privileged isolated world.

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 background script called a Service Worker that sits between the page and the network, letting it modify requests. Chrome's Translate feature on iOS fetches some of its own code using a request that goes through that Service Worker, so the attacker can swap in their own code. That code then runs in a more trusted part of the browser than normal web pages, which could let the attacker reach features like password saving.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.