threatdeck
Live 14:45 UTC ·

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

  1. Upgrade prefab-ui to 0.21.0 or later.
  2. If you cannot upgrade, disable the Generative UI / GenerativeUI provider, or uninstall Deno from the host.
  3. Restrict network access to FastMCP servers and require authentication. Limit which clients can call the generate_prefab_ui tool.
  4. Check virtualenv site-packages for unexpected .pth files and review file changes made by the server OS user.
  5. 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.”

NVD (AI keyword search)

“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.”

NVD (AI keyword search)

“On a FastMCP server with no authentication configured, any client who can reach the server can call the tool.”

NVD (AI keyword search)

“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”

NVD (AI keyword search)

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

Following

Follow the vendors, products, AI tools, techniques and actors you care about. Matching stories, CVEs and exploited bugs are marked, a Following tab appears in the feed, and returning visits show what changed. Saved only in this browser.

Presets

Get updates

A personal RSS feed of new stories on everything you follow. Paste it into any feed reader, Slack or Teams RSS app.