Home / PrefectHQ / prefab-ui / CVE-2026-120338
CVE-2026-120338: is it exploited, and which versions of PrefectHQ prefab-ui are affected and fixed?
CVE-2026-120338 is a protection mechanism failure vulnerability in PrefectHQ prefab-ui. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 19:39 UTC). Affected: prefab-ui from 0.14.0 before 0.21.0 (CVE record by JFROG). Fixed in 0.21.0 (CVE record by JFROG). Severity: Critical (10.0, CVSS 3.1, from JFROG).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 19:39 UTC, CVE record November 19, 2026, 07:04 UTC and NVD November 19, 2026, 07:05 UTC.
What is CVE-2026-120338?
Prefab UI Pyodide sandbox escape to host RCE
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).
From the CVE record by JFROG, last updated November 2, 2026, 19:42 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| PrefectHQ | prefab-ui | from 0.14.0 before 0.21.0 | 0.21.0 |
As the CVE record by JFROG states it, last updated November 2, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
How severe is CVE-2026-120338?
| Score | Version | Vector | Source |
|---|---|---|---|
| Critical 10.0 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H | JFROG |
| Critical 9.9 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H | JFROG |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-120338 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: total (CISA ADP, November 2, 2026)
- EPSS
- 1.13% probability of exploitation activity in the next 30 days, percentile 67.5 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-693 Protection Mechanism Failure
- CWE-94 Improper Control of Generation of Code
- CWE-269 Improper Privilege Management
Where are the vendor advisories and references?
- Prefab repository product
- prefab-ui on PyPI product
- GHSA-595q-jv4r-q7j9 vendor-advisory
- Refresh dependencies and fix renderer and sandbox regressions (fix pull request) patch
- Fix commit 030f074 patch
- v0.21.0 release-notes
- prefab-ui 0.21.0 release-notes
- v0.20.2 (confirmed affected) technical-description
- v0.14.0 (first release with the sandbox) technical-description
Who found and reported it?
- Yuval Moravchick (finder)
- JFrog Security Research (coordinator)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- November 1, 2026
- Published
- November 1, 2026, 15:24 UTC
- CVE record updated
- November 2, 2026, 19:42 UTC by JFROG
- NVD
- Deferred, last modified November 2, 2026, 20:17 UTC
- Last checked
- CVE list November 19, 2026, 07:04 UTC; NVD November 19, 2026, 07:05 UTC; KEV December 3, 2026, 19:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
Questions about CVE-2026-120338
Is CVE-2026-120338 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 19:39 UTC. FIRST's EPSS gives it a 1.13% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of PrefectHQ prefab-ui are affected by CVE-2026-120338?
prefab-ui from 0.14.0 before 0.21.0, per the CVE record by JFROG. The tables above give every range the sources list.
Which version fixes CVE-2026-120338?
0.21.0, per the CVE record by JFROG. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-120338?
Critical (10.0, CVSS 3.1, from JFROG). The severity table above shows each score with its source.
Where is the official record of CVE-2026-120338?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.