PyPI
CVE-2026-120338
Prefab UI Pyodide sandbox escape to host RCE
- Severity
- Critical 10.0
- Published
- 1 Nov 2026
- Last changed
- 2 Nov 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 0.21.0
- Exploit chance
- 1% in the next 30 daysHigher than 62% of CVEs. EPSS by FIRST, 24 Nov 2026
- Weakness
- Protection mechanism failure (CWE-693)Code injection (CWE-94)Improper privilege management (CWE-269)
- Attack
- Over the network · No login needed · No user action needed
- Attacker can
- Read data · Change data · Take it down
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H- Sources
- CVE Program
Description
Prefab UI's Generative UI sandbox runs caller-supplied Python inside Pyodide, Python compiled to WebAssembly, in a Deno subprocess. The feature is documented as isolation for untrusted code, including LLM-written UI. 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. Pyodide's js module proxies that global, so the Python can call Deno.readTextFileSync and Deno.writeTextFileSync. 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. The usual remote path is FastMCP's GenerativeUI provider, which registers the MCP tool generate_prefab_ui and forwards that tool's code argument into this sandbox. On a FastMCP server with no authentication configured, any client who can reach the server can call the tool.
Affected software
| Software | Affected versions |
|---|---|
prefab-uiPyPI · osv:PyPI:prefab-ui |
|
About prefab-ui
- Weekly downloads (PyPI)
- 150,491PyPI Stats, 24 Nov 2026
This is the only vulnerability in prefab-ui in our list.
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-120338