Insufficient policy enforcement in WebXR (CVE-2026-14073)
The WebXR inline session input handler did not check whether a PointerEvent was trusted, so script-dispatched synthetic events could grant user activation. An attacker could use this to bypass gesture gates for fullscreen, popups, clipboard and other sensitive APIs without user interaction.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 2 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 without the Chrome Security team. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: The WebXR implementation fails to verify if a PointerEvent is trusted when processing canvas input for inline sessions. This missing check allows malicious JavaScript to dispatch synthetic events that unconditionally grant transient user activation. An attacker could potentially use this to bypass security gates for sensitive actions like opening popups or entering fullscreen without any user interaction.
Affected files:
third_party/blink/renderer/modules/xr/xr_canvas_input_provider.ccthird_party/blink/renderer/modules/xr/xr_input_source.cc
Estimated timestamp from git blame: 2020-02-19
Summary
A potential logic flaw in the WebXR module allows a malicious website to forge both renderer-side and browser-side user activation without actual user interaction. The root cause is a missing event->isTrusted() check in the input listener for WebXR inline sessions. This allows unprivileged JavaScript to trigger sensitive operations that are normally gated by a user gesture requirement.
Vulnerability Details
In third_party/blink/renderer/modules/xr/xr_canvas_input_provider.cc, the XRCanvasInputEventListener::Invoke method is registered as a standard DOM event listener on the output canvas of a non-immersive (inline) WebXR session. This handler processes PointerEvents but only verifies the isPrimary() property, which is a script-controllable member of the PointerEventInit dictionary:
void Invoke(ExecutionContext* execution_context, Event* event) override {
if (!input_provider_->ShouldProcessEvents())
return;
auto* pointer_event = To<PointerEvent>(event);
DCHECK(pointer_event);
if (!pointer_event->isPrimary()) // JS-settable property
return;
// ... routes pointerup to OnPointerUp ...
}
Crucially, there is no check for event->isTrusted(). Therefore, a script-dispatched synthetic event can reach this handler.
When a synthetic pointerup event is processed, it calls input_provider_->OnPointerUp(pointer_event), which eventually triggers XRInputSource::OnSelect() in third_party/blink/renderer/modules/xr/xr_input_source.cc.
XRInputSource::OnSelect() unconditionally grants user activation by calling LocalFrame::NotifyUserActivation:
void XRInputSource::OnSelect() {
// ...
LocalDOMWindow* window = session_->xr()->DomWindow();
if (!window) return;
LocalFrame::NotifyUserActivation(
window->GetFrame(),
mojom::blink::UserActivationNotificationType::kInteraction);
// ...
}
LocalFrame::NotifyUserActivation updates the renderer's activation state and sends an IPC (UpdateUserActivationState) to the browser process. The browser process blindly trusts this IPC and updates its own user_activation_state_, bypassing the security boundary intended to ensure activation is only triggered by genuine user input.
Potential Impact
Because WebXR 'inline' sessions do not require a prior user gesture to initiate (if only the default 'viewer' feature is requested), an attacker can execute this flow entirely without user interaction.
An attacker could mint transient and sticky user activation on any HTTPS origin. This bypasses the activation gates for numerous sensitive APIs and browser features, potentially including:
- Fullscreen:
Element.requestFullscreen() - Popups: Bypassing the popup blocker to open new windows.
- Clipboard:
navigator.clipboard.writeText() - Other Gated APIs:
AudioContext.resume(),navigator.vibrate(), and device-chooser prompts (e.g., USB, HID).
Suggested Steps to Reproduce
Note: These are suggested steps to trigger the vulnerability based on code analysis. Our tooling does not yet have the ability to run code to confirm a working exploit.
The following sequence could be performed by unprivileged JavaScript on an HTTPS page:
- Request an 'inline' session:
const session = await navigator.xr.requestSession('inline'); - Create a
<canvas>element and acquire a WebGL context. - Update the session render state to use this canvas:
session.updateRenderState({ baseLayer: new XRWebGLLayer(session, gl) }); - Request an animation frame to force the engine to process the state and attach the
XRCanvasInputProviderto the canvas:session.requestAnimationFrame(() => {}); - Once the frame starts, dispatch a synthetic event to the canvas:
canvas.dispatchEvent(new PointerEvent('pointerup', {isPrimary: true})); - The document now possesses user activation. The script can call APIs requiring a user gesture.
Suggested Fix
Add an explicit check to ensure the event was generated by the user agent in third_party/blink/renderer/modules/xr/xr_canvas_input_provider.cc:
void Invoke(ExecutionContext* execution_context, Event* event) override {
if (!input_provider_->ShouldProcessEvents())
return;
if (!event->isTrusted())
return;
auto* pointer_event = To<PointerEvent>(event);
// ...
}
Evaluated with Chrome root at commit: a1e33f5848218e21d4a16ae2c1bc94e815c30c7f
Results 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.
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 WebXR canvas input listener only checked the script-settable isPrimary property and did not verify event->isTrusted(), so synthetic pointer events reached the handler that grants user activation.
Impact
An attacker could mint transient and sticky user activation on any HTTPS origin, potentially bypassing gates for fullscreen, popups, clipboard writes, audio resume, vibration and device chooser prompts; the report notes these steps are suggested from code analysis and not yet confirmed by running code.
What the attacker needed
HTTPS origin; WebXR inline session support; no user interaction required
The fix
The listener should be changed to return early when the event is not trusted, so only user-agent-generated pointer events can grant activation.
How it was found
- Request an inline WebXR session.
- Create a canvas and obtain a WebGL context.
- Set the session render state to use that canvas.
- Request an animation frame so the input provider attaches to the canvas.
- Dispatch a synthetic pointerup event with isPrimary set to the canvas.
- The document now has user activation and can call gesture-gated APIs.
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 only allowed to do sensitive things like open popups or go fullscreen after the user has clicked or tapped something. This report found that a website could fake a click on a WebXR canvas and the browser would believe a real user had interacted, letting the site do those sensitive things without any real click.
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.