Insufficient policy enforcement in Speech (CVE-2026-14105)
The SpeechRecognition.start() method did not enforce the on-device-speech-recognition Permissions-Policy or cross-origin iframe restrictions, allowing unauthorised iframes to use on-device speech recognition. An attacker could bypass the policy to infer whether language packs are installed and expand the attack surface of the speech utility process.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 47 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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: The SpeechRecognition.start() method fails to enforce the on-device-speech-recognition Permissions-Policy and cross-origin iframe restrictions. This allows unauthorized cross-origin iframes to utilize on-device speech recognition engines, bypassing the gate intended for this capability.
Affected files:
third_party/blink/renderer/modules/speech/speech_recognition.cccontent/browser/speech/speech_recognition_dispatcher_host.cccontent/browser/speech/speech_recognition_manager_impl.ccchrome/browser/speech/on_device_speech_recognition_impl.ccchrome/browser/speech/on_device_speech_recognition_util.cc
Estimated timestamp from git blame: 2025-05-13
Root Cause Analysis
A potential policy enforcement gap has been identified in the Web Speech API implementation for on-device recognition. While the SpeechRecognition::available() and SpeechRecognition::install() methods correctly verify the on-device-speech-recognition Permissions-Policy, the start() method (especially when used with a MediaStreamTrack) fails to perform these checks.
In the renderer process (third_party/blink/renderer/modules/speech/speech_recognition.cc), the start() path invokes CheckAvailabilityAndStart(), which lacks the IsFeatureEnabled() checks present in other methods. Furthermore, StartController() hardcodes on_device=true when requesting recognition, effectively forcing an on-device path if supported by the system, regardless of the frame's policy state.
The browser process similarly lacks compensating enforcement. In content/browser/speech/speech_recognition_dispatcher_host.cc, the StartRequestOnUI method determines if a frame can use on-device recognition based on storage partitioning and URL schemes, but it does not consult the frame's Permissions-Policy.
Potential Impact
- Permissions-Policy Bypass: A site's
on-device-speech-recognition=()policy directive can be ignored by subframes. Since this policy defaults toEnableForSelf, cross-origin iframes are denied by default but can bypass this viastart()if they provide an audio track (e.g., viaMediaStreamTrack). - Information Leak: An attacker can infer the global installation state of SODA language packs by observing the success or failure of
start()in a restricted iframe. This information is intended to be protected by the Permissions-Policy. - Attack Surface Expansion: This allows unauthorized frames to interact with the sandboxed SODA/Gemini Nano utility process, increasing the reachability of these processes from untrusted content.
Suggested/Potential Reproduction Steps
- Ensure a SODA language pack (e.g., English) is installed in the Chrome profile.
- Host a page (Origin A) that embeds a cross-origin iframe (Origin B) without an
allow="on-device-speech-recognition"attribute. - In the Origin B iframe, capture an audio track from a media element using
captureStream(). - Execute the following JavaScript in the Origin B iframe:
JavaScript const r = new webkitSpeechRecognition(); r.onresult = (e) => console.log('Transcription:', e.results[0][0].transcript); r.start(track); // Start with the captured MediaStreamTrack - Verify if transcriptions are received despite the policy being denied.
Suggested Fix
- Renderer: In
third_party/blink/renderer/modules/speech/speech_recognition.cc, add a check for theon-device-speech-recognitionPermissions-Policy and cross-origin iframe status withinCheckAvailabilityAndStart()before proceeding with an on-device request. - Browser: In
content/browser/speech/speech_recognition_dispatcher_host.cc, withinStartRequestOnUI, verify the frame's Permissions-Policy usingrfh->IsFeatureEnabled(network::mojom::PermissionsPolicyFeature::kOnDeviceSpeechRecognition)before allowing theon_device_availableflag to be set.
Evaluated with Chrome root at commit: 1a8d40fc44df2088d5945c0bf53584038aa1614a
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.
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 start() code path skipped the feature-enabled policy checks that other speech methods perform, and the browser process did not add a compensating policy check.
Impact
A cross-origin iframe could bypass the site's policy to use on-device speech recognition and infer whether language packs are installed, though the report does not claim full exploitation beyond policy bypass and information leak.
What the attacker needed
SODA language pack installed; victim visits attacker page; cross-origin iframe without allow attribute
The fix
The fix should add a Permissions-Policy check in the renderer's availability-and-start path and verify the frame's policy in the browser process before allowing on-device recognition.
How it was found
- Ensure a SODA language pack is installed in the Chrome profile.
- Host a page that embeds a cross-origin iframe without the allow attribute for on-device speech recognition.
- In the iframe, capture an audio track from a media element using captureStream().
- Create a speech recognition object and start it with the captured track.
- Check whether transcriptions are received despite the policy being denied.
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 set rules, called Permissions-Policy, that limit which features its embedded frames may use. This report found that one speech feature, on-device speech recognition, ignored those rules when started in a particular way. That let a frame use the feature even when the site had not allowed it, and could reveal whether speech language packs were installed.
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.