Skip to content
CriticalVulnerabilityLLM-specific

CVE-2026-120338: Prefab UI sandbox allows file access and code execution via Pyodide

Identifier
CVE-2026-120338
Published
Record updated
View JSON
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
1.1%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .

Summary

Prefab UI's Generative UI sandbox, which runs caller-supplied Python in Pyodide inside a Deno subprocess, exposes the Deno API to that Python code in versions 0.14.0 through 0.20.2. The launcher also starts Deno with unrestricted --allow-read, --allow-write and --allow-net, so a caller who can supply code can read and write files as the server OS user and persist execution via a .pth file in the server virtualenv's site-packages. The usual remote path is FastMCP's GenerativeUI provider, which forwards the code argument of the generate_prefab_ui tool into the sandbox; on servers without authentication, any reachable client can exploit it. Confirmed on prefab-ui 0.20.2.

Mitigation

Fixed in 0.21.0: after the runtime and Prefab sources load, the runner revokes Deno read, write and network permission before accepting code, the process starts with --no-prompt, and bootstrap network access is limited to cdn.jsdelivr.net. The fix is commit 030f074 (pull request 538).