0:00
–:––
React at 0:00
DEF CON 34

WASM Was Not the Boundary: Sandcastles, Not Sandboxes

When and where

Day
Fri 7 Aug 2026
Time
14:30 to 15:30 PDT
Room
LVCC - L1 - Exhibit Hall West 3 - 1007 (Main Track 2)

Speakers

  • Vladimir Tokarev is a vulnerability researcher tech lead at Cyera, specializing in Cloud, IoT/OT, Windows, Linux, and AI vulnerability research and exploit. Talks: Black Hat USA 2024 and 2023, DEF CON 33 Recon Village 2025, CodeBlue 2025, RSA 2024.

  • Saar Pearl is a security researcher at Cyera. He specializes in offensive security and vulnerability research across cloud infrastructure and SaaS platforms, focusing on identity and access controls, architectural weaknesses and exploit development.

Abstract

Pyodide is often treated as a ready-made sandbox: block os, block js, and untrusted Python is assumed to stay inside WebAssembly. In n8n and the other products we tested, that assumption failed. When ctypes or reflection remained reachable, attacker-controlled Python could cross from CPython-in-WASM into the Emscripten/JavaScript host boundary the product actually relied on. We show this as an architectural failure, not a one-off bug. In Node.js embeddings, that boundary break typically becomes immediate host-side code execution because the escaped code lands in a runtime with no native permission model. In Deno embeddings, the same break still reaches the embedding runtime, but the final blast radius depends on the permissions the product granted; in one default configuration, that still meant full RCE. In CI environments, the same mistake turns tests and build steps into a supply-chain risk because the escaped code runs next to tokens, secrets, and release artifacts. Across workflow automation, spreadsheets, AI agents, desktop wrappers, and build tooling, we found seven escapes, two public CVEs, and multiple additional disclosures. Attendees leave with a precise mental model of where Pyodide isolation actually ends, how to test similar deployments, and how to harden them beyond fragile denylists. - Pyodide documentation. Pyodide is CPython compiled with Emscripten to WebAssembly and embedded in a JavaScript host; this host-embedding model is central to our analysis. https://pyodide.org/ - Emscripten API documentation for emscripten_run_script*. These APIs are the JavaScript-execution bridge we reached from Pyodide via ctypes. https://emscripten.org/ - Lehmann et al., "Everything Old is New Again: Binary Security of WebAssembly," USENIX Security 2020. - Bosamiya et al., "Provably-Safe Multilingual Software Sandboxing using WebAssembly," USENIX Security 2022. - Zhao et al., "Remote Code Execution from SSTI in the Sandbox: Cracking the Sandbox of Template Engines via Isolation-Aware Attack," USENIX Security 2023. - Public advisories for two instances from this research: CVE-2025-68668 / GHSA-62r4-hw23-cc8v (n8n) CVE-2026-24002 / GHSA-7xvx-8pf2-pv5g (Grist)

What you'll get from it

Pyodide, which is CPython compiled to WebAssembly, is often treated as a ready-made sandbox for running untrusted Python. Vladimir Tokarev and Saar Pearl show that this assumption breaks when ctypes or reflection stay reachable, letting attacker-controlled Python cross out of WebAssembly into the JavaScript host the product actually depends on. They present it as an architectural failure, with blast radius ranging from immediate code execution in Node.js embeddings to supply-chain risk in CI, and report seven escapes and two public CVEs across tools like n8n and Grist. It helps if you deploy Pyodide or audit sandboxes.

Did you find what you came for?