{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2026-120338 in the wild and no public exploit code.","exposure":"","fix":"No fix has been published for CVE-2026-120338 yet. Limit exposure of the affected software until one is available.","what":"CVE-2026-120338 is a critical vulnerability in PrefectHQ prefab-ui, published on 1 Nov 2026."},"fix_prompt":"Check this codebase for CVE-2026-120338 and fix it if it is affected.\n\nWhat it is: CVE-2026-120338 is a critical vulnerability in PrefectHQ prefab-ui, published on 1 Nov 2026. \nExploitation: There is no known exploitation of CVE-2026-120338 in the wild and no public exploit code.\n\nAffected product: PrefectHQ prefab-ui. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-120338/ (Markdown: https://insights.sbomify.com/CVE-2026-120338/index.md)","id":"CVE-2026-120338","markdown":"https://insights.sbomify.com/CVE-2026-120338/index.md","name":"CVE-2026-120338","record":{"aliases":["GHSA-3g72-rrqc-f76c","GHSA-595q-jv4r-q7j9"],"analysis":null,"analysis_generated_by":null,"assigner":"JFROG","cpe":[],"cvss":{"score":10,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"},{"id":"CWE-693","name":"Protection Mechanism Failure"},{"id":"CWE-269","name":"Improper Privilege Management"}],"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. 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).","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":false,"headline":"Prefab UI Pyodide sandbox escape to host RCE","id":"CVE-2026-120338","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":null,"year":"2026"},"n_packages":0,"n_references":9,"next":{"headline":"mathurvishal CloudClassroom-PHP-Project updatedetailsfromfaculty.php cross site scripting","id":"CVE-2026-120339"},"nickname":null,"packages":[],"prev":{"headline":"VStarcam O-KAM SuperIPCam P2P Session Teardown SuperIPCam.exe FUN_005a2d44 use after free","id":"CVE-2026-120337"},"products":["prefab-ui"],"published":"2026-11-01","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-11-02","vendors":["PrefectHQ"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2026-120338/"}