Please use https://g.co/vulnz to report security vulnerabilities.
We use https://g.co/vulnz for intake and triage. For valid issues we will coordinate fixes and disclosure on GitHub (including using GitHub Security Advisories when necessary).
The Google Security Team will process your report within a day, and respond within a week (depending on the severity of the report).
- Mobile (
Android/iOS): Untrusted Three.js procedural scripts execute inside a dedicated Rust + Boa interpreter (compiler/src/engine.rs) with deterministic opcode-budget interrupts (SECURITY_3D_INTERRUPT_CHECK_OPCODES), wall-clock deadlines (SECURITY_3D_EXECUTION_CEILING_MS), strict loop/recursion/stack limits (RuntimeLimits), hard heap caps (HostHooks::max_buffer_size), andstd::panic::catch_unwindacross every FFI/JNI boundary. - Web (
<three-live>/<xr-live>): By default (sandbox="worker"), procedural scripts run in a dedicated Web Worker that non-configurably revokesfetch,XMLHttpRequest,WebSocket,EventSource,importScripts,navigator,indexedDB,caches,cookieStore,Worker,SharedWorker,BroadcastChannel,SharedArrayBuffer, andAtomicsbefore evaluating the script, enforces a 3,000 ms wall-clock termination watchdog (SECURITY_3D_SANDBOX_TIMEOUT_MS), caps concurrent workers (SECURITY_3D_MAX_CONCURRENT_TASKS), and validates worker-to-host message schemas and byte budgets (SECURITY_3D_MAX_HEAP_BYTES). - Untrusted Error Details: Details attached to
errorevents (CustomEvent<{error: Error}>) originate from script execution or asset parsing and must be rendered usingelement.textContent(neverinnerHTML).
- No Passthrough Camera Capture:
captureXRViewFrameand thecapture_xr_viewWebMCP tool read only the virtual WebGL framebuffer (canvas.toDataURL()). Physical passthrough camera imagery from the user's headset or phone is never read, accessible, or transmitted. XRCapturedFramePayload:dataUrl/base64/mimeType/width/height: Virtual 3D scene snapshot rendered by WebGL2.viewMatrix/projectionMatrix: 16-float virtual camera matrices.headPosition: Coarse 3D viewer coordinates quantized to 0.1 m (10 cm) resolution (quantizeHeadPosition) to prevent sub-millimeter biometric height or tremor fingerprinting. Embedders can omitheadPositionentirely frominspect_xr_sceneby setting thewebmcp-omit-poseattribute on<xr-live>.depthGridMeters: Optional 8×8 coarse metric depth grid (64floats). Disabled by default in WebMCP; only populated when the embedder explicitly sets thewebmcp-allow-depthattribute on<xr-live>and the caller passesincludeDepth: true.
- Capture Indicator & Event: Invoking
capture_xr_viewsetsdata-xr-webmcp-indicator="active"and dispatches anxr-webmcp-captureCustomEventon the<xr-live>element so the host page can surface a visible capture indicator.
All sensitive host side effects are gated by nine canonical capabilities across Web, Android, and iOS/visionOS, and default to off (fail-closed):
scripts: Compiling or executing<script type="text/three">/executeScript()(allow-client-scriptsis supported as an alias on Web; enabled by default in nativeThreeLiveCapabilities.DEFAULT/.default, disabled in.NONE/.none).network: Outboundfetch,WebSocket, and WebRTC signaling connections (supports scheme and origin allowlists vianetwork:https,wss@https://cdn.example.com).remote_content: Loading remote.glb,.usdz,script-src, HDRI environment/skybox textures, externalgltf.images[].urireferences,.splat/.spzclouds, and remote spatial audio URLs (also requiresnetworkfor network schemes; localblob:/data:/file:/asset:URIs remain local).camera: Immersive AR sessions, viewport frame capture (RendererFrameSource,ARViewFrameSource, Gemini Live frame streaming), and object detection loops.microphone: Speech recognition, realtime voice editing (AIVoiceSession), Gemini Live PCM input, andshared-room-voiceWebRTC signaling.sensors: Immersive VR sessions, WebXR/ARCore/ARKit plane, mesh, and depth reads, and 25-joint hand pose/gesture polling.storage: Persistent anchor reads/writes (localStorage,#xr-stateURL hashes) and AI texture disk caches.ai: LLM scene editing (editScene), image-to-scene (compileFromImage), AI texture generation, and Gemini Live / realtime voice sessions.external_handoff: Launching external OS AR viewers (Apple AR Quick Look and Google ARCore Scene Viewer).
Scene scripts and glTF extras.xr traits cannot escalate capabilities not
granted by the host embedder. Refused operations emit a credential- and
query-stripped three-capability-denied event (CapabilityDeniedEvent on
Android/iOS) without crashing scene rendering.