Skip to content
Access control Advisory Advanced CVE-2026-95275

Incorrect reference resolution in MediaStream (CVE-2026-95275)

Blink's CropTarget and RestrictionTarget promise caches were keyed only by DOM element, not by JavaScript world, so a webpage could receive the promise created in an extension's isolated world. This let the page tamper with the extension world's prototypes, capture private extension objects, call extension functions and read extension-only state.

Zabith Mohammed Follow

Originally disclosed on Chrome VRP

  • Fix shipped in 49 days

Report description

[Blink][Region Capture] Webpage Captures Extension Objects, Invokes Extension Functions, and Reads Private State via Promise Reuse


Bug location

Where do you want to report your vulnerability?

Chrome VRP – Report security issues affecting the Chrome browser. See program rules

Which URL (or repository) have you found the vulnerability in?

https://chromium.googlesource.com/chromium/src/+/main/third_party/blink/renderer/modules/mediastream/media_devices.cc


The problem

Please describe the technical details of the vulnerability

Vulnerability Description

CropTarget.fromElement() and RestrictionTarget.fromElement() reuse a pending ScriptPromiseResolver using only the shared DOM Element as the cache key.

When an extension content script in Chrome's isolated V8 world makes the first call and the ordinary webpage synchronously makes a duplicate call for the same element before the browser process responds, Blink returns the original Promise created in the extension isolated world.

The webpage consequently receives direct access to the isolated world's Promise, Function, and Object prototypes.

In the attached V4 proof of concept, the webpage:

  1. modifies the extension isolated world's Promise.prototype, Function.prototype, and Object.prototype;
  2. installs a webpage-defined inherited getter on the isolated world's Object.prototype;
  3. causes extension code to access a private isolated-world object;
  4. captures that private object as the getter's this value;
  5. reads private properties that were never exposed through the DOM or a message channel;
  6. invokes an existing extension-world function stored on the captured object;
  7. reads an extension-only global, chrome.runtime.id, manifest metadata, and an extension URL through that function; and
  8. mutates the private isolated-world object, with the extension observing the mutation.

Both the CropTarget and RestrictionTarget paths reproduce on Google Chrome Stable 151.0.7922.76 for Windows.

The pending resolver maps are shared on navigator.mediaDevices and are keyed by Element, but are not partitioned by ScriptState or DOMWrapperWorld. A duplicate caller therefore receives the first caller's world-bound Promise.

Attack Preconditions

  • A victim extension has a content script running on the attacker's webpage.
  • The content script calls CropTarget.fromElement() or RestrictionTarget.fromElement() on a DOM element shared with the webpage.
  • The webpage makes a duplicate call for the same element while the first browser request is still pending.

The proof makes the duplicate call deterministically using a synchronous DOM event dispatched immediately after the extension's first call. No arbitrary sleep race is required.

No experimental Blink flag, unsafe browser flag, crash, memory corruption, eval, new Function(), or 'unsafe-eval' is required.

Reproduction Steps / POC

Tested product:

Text
Google Chrome Stable 151.0.7922.76
Windows 10 x64
Manifest V3 content script in the default isolated world
  1. Save the attached files in this layout:
Text
extension/
  manifest.json
  content.js
page/
  index.html
run_server.py
  1. Start the local server:
PowerShell
python .\run_server.py
  1. Open:
Text
chrome://extensions
  1. Enable Developer mode.

  2. Click Load unpacked and select the extension directory containing manifest.json.

  3. Open:

Text
http://127.0.0.1:19940/
  1. The page automatically tests both vulnerable paths.

A vulnerable result displays:

Text
FINAL_REPRODUCED=true

For both crop and restriction, the result includes:

Text
constructorIsPagePromise=false
thenIsPagePromiseThen=false
promisePrototypeIsPage=false
functionPrototypeIsPage=false
objectPrototypeIsPage=false
foreignFunctionIsPageFunction=false

capturedPrivateSecret=EXT_PRIVATE_OBJECT_SECRET_v4_20af
capturedMethodIsPageFunction=false
extensionFunctionInvocationSucceeded=true

extensionRuntimeProof.globalSecret=
  EXTENSION_WORLD_GLOBAL_SECRET_v4_c991

extensionRuntimeProof.hasChromeRuntime=true
extensionRuntimeProof.extensionId=<non-empty extension ID>

extensionGetterTrapResult=
  PAGE_GETTER_EXECUTED_V4_<case>

extensionObservedPagePrivateMutation=
  PAGE_MUTATED_PRIVATE_OBJECT_V4_<case>

reproduced=true

Top-level output:

JSON
{
  "positiveCases": [
    "crop",
    "restriction"
  ],
  "finalReproduced": true
}

The attached 06_stable_chrome_151_reproduction.txt contains the complete decisive output.

Impact analysis

A malicious webpage can exploit this issue when a victim extension content script uses Region/Element Capture on a page-controlled or page-visible DOM element.

After successful exploitation, the webpage crosses Chrome's extension isolated-world boundary and gains access to JavaScript objects and intrinsic prototypes belonging to the extension world.

The attached proof demonstrates that the webpage can:

  • modify the isolated world's native Promise, Function, and Object prototypes;
  • execute a webpage-defined accessor during extension-world object access;
  • capture an extension-private isolated-world object;
  • read private properties that were never intentionally exposed to the webpage;
  • invoke an existing extension-world function on the captured object;
  • obtain chrome.runtime.id, extension manifest metadata, an extension URL, and extension-only test secrets through that function; and
  • mutate the captured private object in a way observed by the extension.

This breaks the security property that content-script JavaScript state and extension API bindings are isolated from webpage JavaScript.

The demonstrated impact is cross-world object disclosure, isolated-world prototype manipulation, invocation of extension-world functions, private extension-state disclosure, and integrity impact against extension-owned JavaScript objects.

I am not claiming native memory corruption, browser-process compromise, sandbox escape, OS command execution, or arbitrary string-to-code execution in the extension world.


The cause

What version of Chrome have you found the security issue in?

151.0.7922.76+stable

Is the security issue related to a crash?

No, it is not related to a crash.

Choose the type of vulnerability

Privilege Escalation

How would you like to be publicly acknowledged for your report?

Zabith Mohammed (@nmzabith)

The original report as published on the Chromium issue tracker, by Zabith Mohammed (@nmzabith). 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 pending resolver maps on navigator.mediaDevices were keyed only by Element and not partitioned by ScriptState or DOMWrapperWorld, so a second caller in another world got the first caller's world-bound promise.

Impact

A malicious page could cross the extension isolated-world boundary, disclosing private extension state and letting the page tamper with extension-owned objects; the author does not claim memory corruption, sandbox escape or code execution.

What the attacker needed

Victim extension content script on attacker page; content script calls fromElement on shared element; page makes duplicate call while pending

How it was found

  1. Load the unpacked extension and start the local test server.
  2. Open the test page, which automatically exercises both the crop and restriction paths.
  3. The extension content script calls fromElement on a shared element, and the page synchronously makes a duplicate call before the browser responds.
  4. The page receives the extension world's promise and uses it to modify prototypes, capture a private object and invoke an extension function.
  5. The page reads extension-only values and mutates the private object, and the output shows the reproduction succeeded.

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.

Chrome keeps extension scripts in a separate JavaScript 'world' so a webpage cannot touch their objects. Here a shared cache handed the webpage the extension's own promise object, which is like giving a stranger the keys to your locked room. The page could then change the extension's built-in objects and read data the extension never meant to share.

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 by Zabith Mohammed

View all

2 more disclosed reports, best first.

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.