Skip to content
XSS Advisory Advanced CVE-2026-11157

Script injection in Accessibility (CVE-2026-11157)

A malicious extension with the ttsEngine permission can inject arbitrary JavaScript into the Reading Mode WebUI via an unsanitized language string, leading to Universal Cross-Site Scripting. This allows the extension to read cross-origin page content and exfiltrate it back to the extension.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 52 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: A malicious extension with the ttsEngine permission can potentially achieve Universal Cross-Site Scripting (UXSS) in the chrome-untrusted://read-anything WebUI. This occurs due to unsanitized string concatenation in ReadAnythingAppController::OnGetVoicePackInfo when processing a language string provided by the extension API. The injected script can read cross-origin page content and exfiltrate it back to the extension.

Affected files:

  • chrome/renderer/accessibility/read_anything/read_anything_app_controller.cc
  • chrome/browser/ui/webui/side_panel/read_anything/read_anything_untrusted_page_handler.cc
  • chrome/browser/speech/extension_api/tts_engine_extension_api.cc
  • content/browser/speech/tts_controller_impl.cc

Estimated timestamp from git blame: 2026-01-25

Vulnerability Details

A potential Universal Cross-Site Scripting (UXSS) vulnerability exists in the Reading Mode side panel (chrome-untrusted://read-anything), which could allow a malicious extension to escalate its privileges. An extension with the ttsEngine permission can inject arbitrary JavaScript into the Reading Mode WebUI via an unsanitized string concatenation in the C++ renderer code.

The vulnerability is triggered by the chrome.ttsEngine.updateLanguage API. The lang property of this API is not restricted by the extension schema or validated in the browser process before being passed to the Reading Mode UI.

  1. Source: A malicious extension calls chrome.ttsEngine.updateLanguage({lang: PAYLOAD, installStatus: 'installed'}). The lang parameter is an unconstrained string.

  2. Propagation:

    • ExtensionTtsEngineUpdateLanguageFunction::Run in tts_engine_extension_api.cc forwards the lang string without validation to TtsControllerImpl::UpdateLanguageStatus.
    • On non-ChromeOS platforms (Windows, macOS, Linux), ReadAnythingUntrustedPageHandler is registered as a delegate and receives this status update.
    • It wraps the raw lang string in a VoicePackInfo Mojo struct and sends it to the Reading Mode renderer.
  3. Sink: In the renderer process, ReadAnythingAppController::OnGetVoicePackInfo (chrome/renderer/accessibility/read_anything/read_anything_app_controller.cc) performs the following unsanitized concatenation:

    C++
    ExecuteJavaScript("chrome.readingMode.updateVoicePackStatus(\'" +
                      voice_pack_info->language + "\', \'" + status + "\');");
    

    By providing a payload like en','x'); [INJECTED JS]; //, an attacker can break out of the string literal and function call, executing arbitrary JavaScript. Because this execution originates from C++ via ExecuteJavaScript, it bypasses the WebUI's Content Security Policy (CSP).

Impact

By executing script in the Reading Mode WebUI, a malicious extension gains access to the chrome.readingMode Gin bindings. These bindings provide powerful capabilities over the active tab, including:

  • getTextContent and getChildren: To read the distilled accessibility tree of any cross-origin page opened in Reading Mode.
  • onLinkClicked: To dispatch clicks on arbitrary nodes in the active tab.

The injected script can read the cross-origin page content and then exfiltrate it back to the extension by calling chrome.readingMode.sendGetVoicePackInfoRequest(stolen_data). This triggers the ttsEngine.onLanguageStatusRequest event in the extension's background script, allowing the attacker to receive the stolen data.

This effectively grants an extension with only the ttsEngine permission (which normally only prompts the user for text-to-speech capabilities) the equivalent of activeTab read access for any page the user views in Reading Mode.

Note: This vulnerability appears to be applicable only on non-ChromeOS platforms, as ReadAnythingUntrustedPageHandler uses a different mechanism (LanguagePackManager) on ChromeOS and does not register as a TTS update delegate.

Potential Reproduction Steps

These steps are theoretical as an end-to-end exploit has not been fully verified by our automated tooling, but the code path strongly supports this capability.

  1. Install an extension with the ttsEngine permission and a background service worker.
  2. In the service worker, add a listener for chrome.ttsEngine.onLanguageStatusRequest to receive exfiltrated data.
  3. Open the Reading Mode side panel on any website.
  4. From the extension, call:
    JavaScript
    chrome.ttsEngine.updateLanguage({
      lang: "en','x'); var rm=chrome.readingMode; rm.sendGetVoicePackInfoRequest(rm.getTextContent(rm.rootId)); //",
      installStatus: 'installed'
    });
    
  5. The injected script will execute, read the page content via getTextContent, and send it back to the extension using sendGetVoicePackInfoRequest.

Suggested Fix

Refactor ReadAnythingAppController::OnGetVoicePackInfo to avoid evaluating strings as JavaScript. Instead of using ExecuteJavaScript with string concatenation, the renderer should receive data via Mojo and handle it safely. If JavaScript execution is absolutely necessary, the data should be passed as properly encoded arguments (e.g., using base::Value and a function invocation mechanism that doesn't involve string evaluation) or rigorous sanitization should be applied to the language string before concatenation.

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

The renderer concatenates the extension-provided language string directly into a JavaScript call without sanitisation, allowing script injection.

Impact

A malicious extension with only the ttsEngine permission could read cross-origin page content and exfiltrate it, effectively gaining activeTab-like read access for pages viewed in Reading Mode, though the exploit is theoretical and only applicable on non-ChromeOS platforms.

What the attacker needed

Malicious extension with ttsEngine permission; victim opens Reading Mode side panel; non-ChromeOS platform

The fix

The fix should refactor the renderer to avoid evaluating strings as JavaScript, instead passing data via Mojo or using properly encoded arguments.

How it was found

  1. Install an extension with the ttsEngine permission and a background service worker.
  2. In the service worker, add a listener for chrome.ttsEngine.onLanguageStatusRequest to receive exfiltrated data.
  3. Open the Reading Mode side panel on any website.
  4. From the extension, call chrome.ttsEngine.updateLanguage with a crafted lang value.
  5. The injected script executes, reads the page content via getTextContent, and sends it back to the extension using sendGetVoicePackInfoRequest.

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 browser extension with a specific permission can send a crafted text-to-speech language value that gets inserted into a web page without proper cleaning. This lets the extension run its own code inside a privileged browser page, which can then read the content of other websites you have open and send that data back to the extension.

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.