{"id":"CVE-2026-120338","published":"2026-11-01T16:18:14Z","modified":"2026-11-02T20:17:40Z","title":"Prefab UI Pyodide sandbox escape to host RCE","vendor":"PrefectHQ","product":"prefab-ui","tier":"core","eol":null,"affectedVersions":[{"vendor":"PrefectHQ","product":"prefab-ui","versions":[">= 0.14.0, < 0.21.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-11-02T19:42:39.981153Z","from":"CISA ADP","provenance":"source"},"nvdStatus":"Deferred","description":{"text":"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. With authentication, any client allowed to call tools can. Generative UI is opt-in, and the host must have Deno installed. Confirmed on prefab-ui 0.20.2. 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, the process is started with --no-prompt so a permission request cannot grant them again, and bootstrap network access is limited to cdn.jsdelivr.net. The fix is commit 030f074 (pull request 538).","provenance":"source","from":"NVD"},"summary":null,"cvss":{"score":10.0,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"NVD"},"epss":{"score":0.00952,"percentile":0.62177,"date":"2026-11-21","provenance":"source"},"kev":null,"vulncheckKev":null,"exploited":false,"otx":{"pulseCount":8,"pulses":[{"name":"Known_Cve | Nov 10, 2026 | Part 1/2","url":"https://otx.alienvault.com/pulse/6af1de48edf0afc015fdbf9e","created":"2026-11-09"},{"name":"Known_Cve | Nov 9, 2026 | Part 1/2","url":"https://otx.alienvault.com/pulse/6af08d78fae68d2bf8ab0a89","created":"2026-11-08"},{"name":"Known_Cve | Nov 8, 2026 | Part 1/3","url":"https://otx.alienvault.com/pulse/6aef3b029d93097c770c01f5","created":"2026-11-07"},{"name":"Known_Cve | Nov 7, 2026 | Part 1/2","url":"https://otx.alienvault.com/pulse/6aede8f784dbfff6c3936472","created":"2026-11-06"},{"name":"Known_Cve | Nov 6, 2026 | Part 2/2","url":"https://otx.alienvault.com/pulse/6aec9814761aea31240fbf8c","created":"2026-11-05"},{"name":"Known_Cve | Nov 5, 2026 | Part 2/3","url":"https://otx.alienvault.com/pulse/6aeb4640975e6631ab96b181","created":"2026-11-04"},{"name":"Known_Cve | Nov 4, 2026 | Part 2/3","url":"https://otx.alienvault.com/pulse/6ae9f4a534e5bab82408f0f2","created":"2026-11-03"},{"name":"Known_Cve | Nov 3, 2026 | Part 2/2","url":"https://otx.alienvault.com/pulse/6ae8a2fbb750e3c9efe15713","created":"2026-11-02"}],"provenance":"machine"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"},{"id":"CWE-269","name":"Improper Privilege Management"},{"id":"CWE-693","name":"Protection Mechanism Failure"}],"references":[{"url":"https://github.com/PrefectHQ/prefab","tags":["product"]},{"url":"https://github.com/PrefectHQ/prefab/commit/030f074f85e0b1be0dd44b0283185aecb26337a2","tags":["patch"]},{"url":"https://github.com/PrefectHQ/prefab/pull/538","tags":["patch"]},{"url":"https://github.com/PrefectHQ/prefab/releases/tag/v0.14.0","tags":["technical-description"]},{"url":"https://github.com/PrefectHQ/prefab/releases/tag/v0.20.2","tags":["technical-description"]},{"url":"https://github.com/PrefectHQ/prefab/releases/tag/v0.21.0","tags":["release-notes"]},{"url":"https://github.com/PrefectHQ/prefab/security/advisories/GHSA-595q-jv4r-q7j9","tags":["vendor-advisory"]},{"url":"https://pypi.org/project/prefab-ui/","tags":["product"]},{"url":"https://pypi.org/project/prefab-ui/0.21.0/","tags":["release-notes"]}],"techniques":[],"reports":[],"affected":[],"advisories":[],"euvd":{"id":"EUVD-2026-114859","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-114859","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":null,"exploitRefs":[],"flow":[],"timeline":[{"date":"2026-11-01","kind":"published","label":"Published (NVD)","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-120338","provenance":"source"}],"speed":{"daysToPublicExploit":null,"firstExploitFrom":null,"daysToKev":null},"priority":{"score":21.6,"factors":[{"name":"In a KEV catalog","points":0.0,"detail":"not listed"},{"name":"Recent KEV listing","points":0.0,"detail":"not listed"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":12.44,"detail":"percentile 0.6218"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":0.0,"detail":"none found"},{"name":"Mentioned in OTX pulses","points":2.17,"detail":"8 pulses"},{"name":"CVSS severity","points":7.0,"detail":"base score 10.0"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}