AI Stack Alert Critical CVE-2026-120338 For AppSec, AI Eng, SOC / IR, CISO AI-assisted
Prefab UI 0.14.0–0.20.2 Generative UI sandbox escape via Deno; fixed in 0.21.0
In prefab-ui 0.14.0 through 0.20.2, the Generative UI sandbox runs Python in Pyodide inside a Deno subprocess started with unrestricted read, write and net permissions. The Deno API is left on the JavaScript global object, so supplied Python can read and write files as the server OS user. The usual remote path is FastMCP's GenerativeUI provider and its generate_prefab_ui tool. Version 0.21.0 revokes these permissions before accepting code.
Why it matters
An attacker who can supply code to the sandbox can read and write files as the server user. They can also persist code execution by writing a .pth file into the virtualenv. FastMCP servers with Generative UI enabled are exposed to any client without authentication, or to any client allowed to call tools if authentication is on. The CVSS base score is 10.
Do this
- Upgrade prefab-ui to 0.21.0 or later.
- If you cannot upgrade, disable the Generative UI / GenerativeUI provider, or uninstall Deno from the host.
- Restrict network access to FastMCP servers and require authentication. Limit which clients can call the generate_prefab_ui tool.
- Check virtualenv site-packages for unexpected .pth files and review file changes made by the server OS user.
- Run the MCP server as a low-privilege user with a minimal filesystem scope. Rotate any secrets readable by that user if exposure is suspected.
Exploit Clock
Exploitation unlikely (for now)
- EPSS 0.77%
Signals
- NoCISA KEV
- 10CVSS
- 0.77%EPSS
- NoPublic PoC
- 44/100Priority
- 85%Confidence
Evidence
“From prefab-ui 0.14.0 through 0.20.2 the launcher starts Deno with unrestricted --allow-read, --allow-write, and --allow-net, and the runner leaves the Deno API on the JavaScript global object.”
“A caller who can supply the code can read and write files as the server OS user, and can persist code execution by writing a .pth file into the server virtualenv's site-packages.”
“On a FastMCP server with no authentication configured, any client who can reach the server can call the tool.”
“Fixed in 0.21.0: after the runtime and Prefab sources load, the runner revokes Deno read, write, and network permission before it accepts code”
Sources
Affected / related
prefab-ui, FastMCP, generate_prefab_ui, Pyodide, Deno
Published 2026-11-01 16:18 UTC · updated 2026-11-08 02:30 UTC · AI-assisted summary, checked against quoted sources · How we score