Intel

AIKIDO-2026-292414

prefab-ui is vulnerable to Protection Mechanism Failure

CVE-2026-120338Published 4 days ago
November 5, 2026

100

CVE Score

Critical

Protection Mechanism Failure

Are you affected? Scan for Free

TL;DR

Before the fix, PyodideSandbox started the Generative UI sandbox's Deno runner with unrestricted --allow-read, --allow-write and --allow-net, and the runner executed caller-supplied Python without revoking those permissions, so the code reached host file read and write through Pyodide's js module and could persist execution by writing a .pth file into site-packages. Anyone allowed to invoke the sandbox, locally or through FastMCP's generate_prefab_ui tool on a server with no authentication, could supply the code; the feature is opt-in and needs Deno installed on the host. Versions 0.14.0 through 0.20.2 are affected. The fix restricts Deno's network to the Pyodide CDN, adds --no-prompt, and revokes read, write and net permissions before any generated code runs.

How do I fix this?

Upgrade the prefab-ui package to 0.21.0 or later.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and run the Generative UI sandbox, with Deno installed on the host, and let callers supply its Python code.

Package

Versions

0.14.0 - 0.20.2

Fixed in 0.21.0

Background info

prefab-ui is vulnerable to Protection Mechanism Failure in versions 0.14.0 - 0.20.2.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea