CVE-2026-120338: Prefab UI sandbox allows file access and code execution via Pyodide
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2026-120338
- Published
- Record updated
- 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).
Related items
- MediumCVE-2026-143967: Wise Chat with AI unauthenticated stored cross-site scriptingSimilar attack, NVD/CVE Database
- MediumCVE-2026-135917: Apache Camel A2A component confused deputy via shared message headersSimilar attack, NVD/CVE Database
- MediumCVE-2026-107489: Improper Authentication vulnerability in Apache Camel A2A component. This issue affects Apache Camel: from 4.21.0…Similar attack, NVD/CVE Database
- MediumNSA urges immediate post-quantum shift after AI labs report cryptography breakthroughsSimilar attack, CSO Online
- LowPerplexity caught an AI attacker casing its cloudSimilar attack, CSO Online