Skip to content
Info disclosure Advisory Advanced CVE-2026-106365

Missing authorization in Animation (CVE-2026-106365)

The experimental EventTrigger API allows attaching native event listeners to cross-origin WindowProxy objects without Same-Origin Policy checks, creating a side channel to observe timing of sensitive events like keystrokes in cross-origin same-process frames. An attacker could use this to leak information via a high-resolution timing oracle.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 6 months

Project Fortify, an experimental security project, has identified the following potential security issue.

Overview: The experimental EventTrigger API allows attaching native event listeners to cross-origin WindowProxy objects without Same-Origin Policy (SOP) checks. This creates a side channel where an attacker can observe the precise timing of sensitive events (like keystrokes) on cross-origin same-process frames. This constitutes a potential cross-origin information leak (XS-Leak).

Affected files:

  • third_party/blink/renderer/core/animation/event_trigger.cc
  • third_party/blink/renderer/core/animation/event_trigger_options.idl
  • third_party/blink/renderer/core/animation/animation_trigger.cc

Estimated timestamp from git blame: 2025-10-10

Description

There is a potential Same-Origin Policy (SOP) bypass in the experimental Web Animations EventTrigger API (currently behind the --enable-experimental-web-platform-features flag). The vulnerability allows a malicious page to observe the timing of events (e.g., keydown, focus) occurring within a cross-origin iframe that shares the same renderer process.

Technical Details

  1. Dictionary Unwrapping: The EventTriggerOptions dictionary expects an EventTarget. If an attacker passes a cross-origin WindowProxy (e.g., window.frames[0]), the V8 bindings convert this using NativeValueTraits<EventTarget>::NativeValue. Because Window inherits from EventTarget, the cross-origin WindowProxy passes the structural type check (HasInstance) and is successfully unwrapped into a C++ LocalDOMWindow* pointer. Crucially, dictionary unwrapping does not perform cross-origin access checks.
  2. Direct C++ Listener Registration: The unwrapped LocalDOMWindow* is passed to EventTrigger::Create and stored. When an animation is added, EventTrigger::DidAddAnimation creates a C++ NativeEventListener (TriggerEventListener) and registers it by calling event_target_->addEventListener(...) directly in C++.
  3. Bypassing Security Interceptors: This direct C++ call bypasses the V8 [CrossOrigin] interceptors that normally block JavaScript from calling window.addEventListener() on cross-origin windows. Furthermore, when the event fires, TriggerEventListener (being a native listener) does not perform the origin validation checks that a JSBasedEventListener would normally perform before invocation.

As a result, the attacker's animation state is synchronously modified whenever the targeted event occurs in the cross-origin window.

Potential Exploitation Steps

Note: These are suggested steps based on static analysis, as our tooling cannot currently execute code to provide a working proof of concept.

  1. An attacker hosts a page and embeds a victim site in an iframe (e.g., a same-site, cross-origin frame on Desktop, or a cross-origin frame on Android where strict site isolation might be relaxed).
  2. The attacker uses JavaScript to instantiate a trigger: let trigger = new EventTrigger({ eventType: 'keydown', eventTarget: window.frames[0] });
  3. The attacker creates a dummy Web Animation and attaches it: trigger.addAnimation(anim, 'play', 'none');
  4. As the user interacts with the victim iframe (e.g., typing a password), the native keydown events fire.
  5. The TriggerEventListener catches these events and updates the attacker's animation state (e.g., changing it from 'paused' to 'running').
  6. The attacker uses requestAnimationFrame to poll the animation's playState, recording the exact timing of each keystroke to create a high-resolution timing oracle (XS-Leak).

Suggested Fix

Add an explicit security check before registering the event listener or when creating the EventTrigger.

For example, in EventTrigger::Create or EventTrigger::DidAddAnimation, verify that the current execution context has permission to access the event_target_. This can be done by checking if the target is a DOMWindow and utilizing BindingSecurity::ShouldAllowAccessTo to enforce the Same-Origin Policy before allowing the trigger to be constructed or the listener to be attached.

Evaluated with Chrome root at commit: ff3d2b74fa39431785bd60e51463b08fcc71ee33


Results from 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.

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 EventTrigger API's dictionary unwrapping and direct C++ listener registration bypass the cross-origin access checks that normally prevent JavaScript from adding event listeners to cross-origin windows.

Impact

An attacker could observe the precise timing of sensitive events like keystrokes on cross-origin same-process frames, potentially leaking information such as passwords, but the exploit requires the experimental flag to be enabled and may be limited by site isolation.

What the attacker needed

Experimental flag enabled; victim site embedded in iframe; same renderer process; user interacts with iframe

The fix

The fix should add an explicit security check, such as using BindingSecurity::ShouldAllowAccessTo, before registering the event listener or creating the EventTrigger.

How it was found

  1. An attacker hosts a page and embeds a victim site in an iframe.
  2. The attacker uses JavaScript to instantiate a trigger with the cross-origin window as the event target.
  3. The attacker creates a dummy Web Animation and attaches it to the trigger.
  4. As the user interacts with the victim iframe, native keydown events fire.
  5. The TriggerEventListener catches these events and updates the attacker's animation state.
  6. The attacker uses requestAnimationFrame to poll the animation's playState, recording the exact timing of each keystroke.

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.

Websites are normally not allowed to read or interact with content from other websites (this is the Same-Origin Policy). This report found a bug in an experimental browser feature that let a malicious website listen to events (like key presses) happening inside another website embedded in an iframe, by bypassing that policy. The attacker could then measure the timing of those events to guess what the user is typing.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.