Summary
CVE-2026-120338 is a critical sandbox escape (protection mechanism failure) in the Generative UI sandbox of Prefab UI (prefab-ui, PrefectHQ). Code that runs inside the Pyodide sandbox can read and write files as the server’s OS user and can reach persistent code execution on the host. The CVE record rates it CVSS 10.0 (Critical).
Technical details
- Root cause: The Deno subprocess that hosts the Pyodide sandbox was started with unrestricted
--allow-read,--allow-writeand--allow-netpermissions. The Deno API was also exposed on the JavaScript global object, so sandboxed code was not isolated from the host. - Impact: Sandboxed code can read and write files as the server OS user. It can gain persistent code execution by writing into the virtualenv’s
site-packagesdirectory. - Attack vector: Network. The CVE record scores two scenarios. An unauthenticated scenario scores 10.0. A scenario where the attacker is an authenticated user scores 9.9.
- Weaknesses (CWE): CWE-693 (Protection Mechanism Failure), CWE-94 (Improper Control of Generation of Code) and CWE-269 (Improper Privilege Management).
- Fix: The fix is in PR #538, which revokes the sandbox bootstrap permissions before generated code executes.
- Not confirmed: I could not retrieve the full GitHub advisory text. The exact trigger conditions, such as which deployments expose the Generative UI feature, and any workarounds are not confirmed here.
Affected software
prefab-ui(PrefectHQ) versions 0.14.0 through 0.20.2
Severity
- CVSS v3.1 base score: 10.0 (Critical)
- Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H - The authenticated-user scenario in the CVE record scores 9.9:
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Mitigation and recommended actions
- Immediate: Upgrade
prefab-uito 0.21.0 or later. Version 0.21.0 was released on October 26, 2026. - If you cannot patch: No workarounds were confirmed in the sources reviewed. Until you can upgrade, consider disabling or restricting access to the Generative UI sandbox feature.
- Check for compromise: Review the virtualenv
site-packagesdirectory for unexpected modifications. Review the server for unexpected file changes or outbound connections made by the application’s OS user.

