Prefab UI generative-UI sandbox escaped to the host; 0.21.0 revokes Deno permissions
CVE-2026-120338, published November 1, reports that Prefab UI 0.14.0 through 0.20.2 ran model- or caller-supplied Python in Pyodide while leaving a Deno API with read, write, and network permissions on the JavaScript global. Code could use Pyodide's js proxy to read or write host files and persist execution through a virtualenv .pth file. Version 0.21.0 revokes filesystem and network permissions before accepting generated code and starts Deno with --no-prompt.
Why it matters
The issue is a concrete counterexample to treating WebAssembly or browser-derived runtimes as an isolation boundary. When generative UI executes model-produced code, the effective boundary is the host process, tool authorization, network exposure, and the permissions present when generated code begins.
A closer look
The GitHub Advisory Database rates the issue Critical at CVSS 3.1 10.0. A typical remote path is FastMCP's GenerativeUI provider forwarding the generate_prefab_ui code argument into the sandbox. Without authentication, a client that can reach the server can call it; with authentication, any client authorized for that tool can still reach the path. The issue was confirmed on 0.20.2. Fix PR #538 merged October 25 and shipped in 0.21.0 on October 26: bootstrap network access is limited to cdn.jsdelivr.net, Deno read/write/network permissions are revoked after runtime and Prefab sources load, and permission prompts are disabled.
Who this is for
Platform, security, and infrastructure teams running Prefab UI, FastMCP GenerativeUI, or any Pyodide/Deno path that executes model-produced code.
Original sources
- GitHub Advisory Database, Prefab release and fix pull request ↗github.com
- Prefab sandbox permission fix PR ↗github.com
- Prefab UI 0.21.0 release ↗github.com
Revisions & corrections (1)
— A newly discovered, evidence-complete critical vulnerability directly affects optional generative-UI code execution; the advisory, affected range, exploit path and upstream fix are documented.