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.ccchrome/browser/ui/webui/side_panel/read_anything/read_anything_untrusted_page_handler.ccchrome/browser/speech/extension_api/tts_engine_extension_api.cccontent/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.
-
Source: A malicious extension calls
chrome.ttsEngine.updateLanguage({lang: PAYLOAD, installStatus: 'installed'}). Thelangparameter is an unconstrained string. -
Propagation:
ExtensionTtsEngineUpdateLanguageFunction::Runintts_engine_extension_api.ccforwards thelangstring without validation toTtsControllerImpl::UpdateLanguageStatus.- On non-ChromeOS platforms (Windows, macOS, Linux),
ReadAnythingUntrustedPageHandleris registered as a delegate and receives this status update. - It wraps the raw
langstring in aVoicePackInfoMojo struct and sends it to the Reading Mode renderer.
-
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++ viaExecuteJavaScript, 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:
getTextContentandgetChildren: 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.
- Install an extension with the
ttsEnginepermission and a background service worker. - In the service worker, add a listener for
chrome.ttsEngine.onLanguageStatusRequestto receive exfiltrated data. - Open the Reading Mode side panel on any website.
- From the extension, call:
JavaScript chrome.ttsEngine.updateLanguage({ lang: "en','x'); var rm=chrome.readingMode; rm.sendGetVoicePackInfoRequest(rm.getTextContent(rm.rootId)); //", installStatus: 'installed' }); - The injected script will execute, read the page content via
getTextContent, and send it back to the extension usingsendGetVoicePackInfoRequest.
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.
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
- Install an extension with the ttsEngine permission and a background service worker.
- In the service worker, add a listener for chrome.ttsEngine.onLanguageStatusRequest to receive exfiltrated data.
- Open the Reading Mode side panel on any website.
- From the extension, call chrome.ttsEngine.updateLanguage with a crafted lang value.
- 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.