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

Improper resource exposure in StreamsAPI (CVE-2026-79068)

Blink's stream implementations store the stream's error state as a raw V8 reference that is not world-safe, so a promise in one DOMWrapperWorld can be rejected with an object from another world. An attacker could potentially use the leaked object's constructor chain to execute code in a privileged context.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 3 months

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: A potential cross-world object leak in Blink's Streams implementation (WritableStream and ReadableStream) allows a context in one DOMWrapperWorld to obtain a direct V8 reference to an object from another world. This occurs because the stream's error state (stored_error_) is held as a raw, non-world-safe V8 reference and returned to other worlds through promise rejections. This can potentially bypass DOMWrapperWorld isolation, allowing cross-context code execution.

Affected files:

  • third_party/blink/renderer/core/streams/writable_stream.h
  • third_party/blink/renderer/core/streams/writable_stream.cc
  • third_party/blink/renderer/core/streams/writable_stream_default_writer.cc
  • third_party/blink/renderer/modules/serial/serial_port.cc

Estimated timestamp from git blame: 2019-07-09

Root Cause Analysis

In Blink's WritableStream (third_party/blink/renderer/core/streams/writable_stream.h:282) and ReadableStream (third_party/blink/renderer/core/streams/readable_stream.h:367) implementations, the stored_error_ field stores the stream's error state as a raw, non-world-safe V8 reference:

C++
TraceWrapperV8Reference<v8::Value> stored_error_;

When a stream is aborted or errored, this field is populated with the raw V8 value provided by the caller. When the error is later propagated to stream writers or readers, it is read raw using GetStoredError(isolate) and passed directly to resolver rejections.

For example, in WritableStreamDefaultWriter::EnsureReadyPromiseRejected (third_party/blink/renderer/core/streams/writable_stream_default_writer.cc:308):

C++
writer->ready_resolver_->Reject(error);

Because ready_resolver_->Reject(v8::Local<v8::Value>) delegates to Reject<IDLAny>, it resolves/rejects the promise using ToV8Traits<IDLAny>::ToV8. For raw v8::Local<v8::Value> types, this traits class returns the reference verbatim without cloning or performing a world boundary check (to_v8_traits.h:96-101). Consequently, a promise in one DOMWrapperWorld (e.g., the main world) can be rejected with a raw V8 object originating from another DOMWrapperWorld (e.g., an isolated world).

Similarly, when the writer's ready promise is already settled, EnsureReadyPromiseRejected overwrites the resolver with a new one created in the active caller's context (writable_stream_default_writer.cc:304-305). When a script in a different world accesses writer.ready, it receives this cross-world promise verbatim via ToV8Traits<IDLPromise<T>>::ToV8 (script_promise.h:74-80).

Potential Attack Scenario

Below are the potential/conceptual steps an attacker might follow to trigger this boundary bypass (note that these are suggested steps, as our tooling does not have the ability to execute code or verify a functional proof of concept):

  1. A page (running in DOMWrapperWorld A) and a victim extension content script (running in isolated DOMWrapperWorld B) obtain access to the same underlying C++ WritableStream or ReadableStream instance.
  2. The content script in World B aborts or errors the stream, passing a local object (such as an Error or DOMException wrapper) as the reason. This raw World B reference is stored in the stream's C++ stored_error_ field.
  3. The page in World A gets a writer on the shared stream and attempts to read or write to it, or registers a handler on the writer's ready promise.
  4. Due to the lack of world-safety checking on stored_error_, the main-world promise is rejected with the raw V8 object originating from World B (or the page receives a raw reference to World B's promise).
  5. The page catches the rejection and accesses the leaked object's constructor chain (e.g., e.constructor.constructor('return globalThis')()) to obtain a reference to World B's global context, potentially allowing the execution of arbitrary JavaScript inside the extension's privileged context.

Suggested Remediation

To prevent raw V8 references from crossing world boundaries, the stream's error state should be stored and retrieved in a world-safe manner.

  1. Modify stored_error_ to use WorldSafeV8Reference instead of TraceWrapperV8Reference:

    C++
    WorldSafeV8Reference<v8::Value> stored_error_;
    
  2. When retrieving the stored error, ensure it is accessed or cloned appropriately for the target ScriptState using GetAcrossWorld(target_script_state) or by utilizing ScriptValue wrappers when rejecting resolvers.

Evaluated with Chrome root at commit: e9507a33bb4148ee071aaaf8a7e9ad68770359bf


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

The stream's error state is stored as a raw V8 reference without world-safety checks, so it is passed verbatim across DOMWrapperWorld boundaries.

Impact

A page could potentially execute arbitrary JavaScript inside an extension's privileged context, though the report notes the scenario is conceptual and was not verified with a working proof of concept.

What the attacker needed

Page and extension share a stream instance; extension content script errors the stream; page reads the writer's ready promise

The fix

The error state should be stored in a world-safe reference and retrieved or cloned for the target script state, for example by using WorldSafeV8Reference and GetAcrossWorld.

How it was found

  1. A page in one world and an extension content script in an isolated world share the same stream instance.
  2. The content script aborts or errors the stream with a local object as the reason.
  3. The page gets a writer on the shared stream and reads or writes to it, or registers a handler on the writer's ready promise.
  4. The page's promise is rejected with the raw object from the other world.
  5. The page catches the rejection and uses the object's constructor chain to reach the other world's global context.

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.

Browsers keep different scripts (like a page and an extension) in separate 'worlds' so they cannot directly touch each other's objects. This report says a stream error can carry an object from one world into another, which could let a page reach into an extension's world. The report is theoretical and was not proven with running code.

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.