Skip to content
Access control Advisory Intermediate CVE-2026-14105

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.cc
  • content/browser/speech/speech_recognition_dispatcher_host.cc
  • content/browser/speech/speech_recognition_manager_impl.cc
  • chrome/browser/speech/on_device_speech_recognition_impl.cc
  • chrome/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

  1. Permissions-Policy Bypass: A site's on-device-speech-recognition=() policy directive can be ignored by subframes. Since this policy defaults to EnableForSelf, cross-origin iframes are denied by default but can bypass this via start() if they provide an audio track (e.g., via MediaStreamTrack).
  2. 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.
  3. 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

  1. Ensure a SODA language pack (e.g., English) is installed in the Chrome profile.
  2. Host a page (Origin A) that embeds a cross-origin iframe (Origin B) without an allow="on-device-speech-recognition" attribute.
  3. In the Origin B iframe, capture an audio track from a media element using captureStream().
  4. 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
    
  5. Verify if transcriptions are received despite the policy being denied.

Suggested Fix

  1. Renderer: In third_party/blink/renderer/modules/speech/speech_recognition.cc, add a check for the on-device-speech-recognition Permissions-Policy and cross-origin iframe status within CheckAvailabilityAndStart() before proceeding with an on-device request.
  2. Browser: In content/browser/speech/speech_recognition_dispatcher_host.cc, within StartRequestOnUI, verify the frame's Permissions-Policy using rfh->IsFeatureEnabled(network::mojom::PermissionsPolicyFeature::kOnDeviceSpeechRecognition) before allowing the on_device_available flag 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.

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 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

  1. Ensure a SODA language pack is installed in the Chrome profile.
  2. Host a page that embeds a cross-origin iframe without the allow attribute for on-device speech recognition.
  3. In the iframe, capture an audio track from a media element using captureStream().
  4. Create a speech recognition object and start it with the captured track.
  5. 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.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.