The docs said read-only. The launcher passed --allow-write.

I covered this in a LinkedIn post. This is the longer version: what JFrog found in Prefab UI, why WebAssembly wasn't the boundary, and the kind of test I'd want on any agent code sandbox this week.

What JFrog found

JFrog Security Research published JFSA-2026-001699278 on Nov 1, 2026 (CVE-2026-120338, discovered by Yuval Moravchick). 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 UI written by a model.

PyodideSandbox._start, JFrog says, started that process with unrestricted --allow-read, --allow-write, and --allow-net. The runner left the Deno API on the JavaScript global object. Pyodide's js module proxies that global, so the Python could call Deno.readTextFileSync and Deno.writeTextFileSync on the host. The runner comment and the public docs described the process as read-only.

Affected versions, per the advisory: prefab-ui >= 0.14.0 and < 0.21.0. The usual remote path is FastMCP's GenerativeUI provider, which registers the MCP tool generate_prefab_ui and forwards the tool's code argument into the sandbox with no extra check. JFrog scores the unauthenticated case 10.0 and the authenticated tool-caller case 9.9. Generative UI is opt-in, and the host must have Deno installed. Servers that never execute untrusted code in this sandbox aren't on that path.

The Injection notes that PrefectHQ shipped the fix in 0.21.0 on October 26, 2026, before the advisory was published. Neither write-up mentions exploitation in the wild.

Configured versus enforced

A sandbox is configured when the docs, comments or marketing say "read-only" or "isolated." It's enforced when the process that runs untrusted code cannot do the thing you said it couldn't, at the moment that code runs.

Prefab UI had the configuration story. The Deno flags were the enforcement story, and they told a different one. WebAssembly didn't save it: the Deno API was reachable from Python, so the wasm boundary was only as tight as Deno's permission flags. Isolation marketing often stops at the guest language. The host APIs left on the global object are the actual perimeter.

There's a second point that's easy to miss once the flags get fixed. A sandbox is a lifecycle, not a flag set. The process needs some access to boot: to load the runtime, to fetch a wheel, to start Pyodide. The real boundary is the moment before the first untrusted line runs. Everything after that moment is the surface an attacker actually sees. A launch that starts wide and never narrows is not a temporary convenience; it is the production posture.

PrefectHQ's 0.21.0 fix, in PR #538, targets that moment. JFrog describes it this way: after startup, before it accepts code, the runner revokes read, write and network permission. The process is started with --no-prompt, so a later permission request cannot grant them again, and bootstrap network access is limited to cdn.jsdelivr.net:443. On 0.21.0, JFrog's PoC read and write fail with a Deno permission error.

That's the right shape of fix: revoke after bootstrap, then accept code. Credit it. The remaining question is whether the suite proves that shape every time someone changes the runner.

What a team can do this week

If you run any sandbox that evaluates model-written or caller-supplied code, I'd put these checks ahead of arguing about which runtime is "secure."

  1. Read the launch flags, not the docs. Diff what the process is actually started with against what the README claims. Docs and runner comments can say read-only while --allow-write is on the argv.
  2. Ask what the untrusted code can still reach. Host files, the network, sibling containers, the package that loaded the sandbox. Wasm, a jail, or a "safe" eval is only as tight as the APIs left on the global object.
  3. Treat bootstrap as a separate phase. List what the runtime needs to start. Revoke everything else before the first line of untrusted code runs. Prefer a no-prompt mode so nothing can grant access back.
  4. Attempt the forbidden action after bootstrap. A test that only asserts the launch flags is trusting configuration. A test that tries a host read or write and expects a permission error is checking enforcement.
  5. Keep the feature opt-in until that test exists. JFrog's path needed Generative UI registered and Deno on PATH. Features that evaluate foreign code shouldn't be ambient.

None of this needs a new product. It's the same hygiene you'd apply to a CI job that runs untrusted build scripts.

Where Speckl fits, and where it doesn't

I build Speckl, an open-source spec language for coding-agent hooks. Its doctor command runs the installed pre-hook with a tool the spec doesn't map and passes only when that hook denies the call. That's how I test a boundary in my own project: fire the forbidden action at the installed control and fail unless it's refused.

Reading PrefectHQ's #538 test diff, I didn't spot a test that attempts the host read and expects the error. I'm asking, not asserting Prefect's intent or claiming their suite is empty. If that probe exists elsewhere in the repo or in a follow-up commit, I'd like to know. If it doesn't, it's the cheapest test that would have caught the docs-versus-flags gap.

Speckl is not a sandbox. The docs say so: it gates the protocol of tool calls. It doesn't use Deno, doesn't isolate Python, and has no relation to Prefab UI, FastMCP, Prefect or JFrog. A harness-level gate that every agent tool call passes through is a direction, not something that ships today.

Over to you

Prefect: is there a test in the Prefab UI suite that attempts a host read or write after bootstrap and expects a Deno permission error, or do the tests trust the launch flags?

For everyone else running an agent code sandbox: last time you changed the runner, did a probe try the forbidden read, or did CI only assert argv?

Speckl is my own open-source project (github.com/wscoble/speckl). It has no connection to Prefect, Prefab UI, FastMCP, JFrog, Deno or any other company or project named here.


If your team is putting agents into production and wants to work through this live, book me for a talk or workshop, or get new posts through the newsletter signup at the bottom of this page.