website/src/content/posts/2026-06-19-secure-exec-v0-3/page.mdx
Secure Exec is secure Node.js execution without a sandbox: no containers, no VMs, just npm-compatible isolation out of the box. v0.3 is a ground-up rewrite of the runtime in Rust, now running as its own isolated sidecar process for stronger isolation, leaner resource usage, and a clean path to running it from any language.
We rewrote the entire runtime in Rust. Secure Exec now runs as a standalone sidecar process over a Unix socket.
Previously, Secure Exec ran V8 inside the Node process itself, so it required Node.js and was limited to specific versions.
The sidecar is the engine that runs guest code; the new Rust SDK is the native client library your program uses to drive it. It is a highly portable way to work with Secure Exec from any language.
Secure Exec can now run full process trees, all inside the virtual kernel.
Untrusted code should never be able to exhaust the host. v0.3 enforces resource caps at the VM level, with sane defaults out of the box, so no single guest can run away with unbounded memory, disk, CPU, or I/O.
fetch() response size bound how much data moves between guest and host.By default, guests run with the full Node.js surface. v0.3 lets you scale that down a platform ladder, all the way to a nodeless bare runtime that exposes only the language and the core security layer.
| Capability | node | browser | neutral | bare |
|---|---|---|---|---|
| Node globals | ✅ | No | No | No |
node:* builtins | ✅ | No | No | No |
| Node identity | ✅ | No | No | No |
| Web platform | ✅ | ✅ | No | No |
| Universal primitives | ✅ | ✅ | ✅ | No |
| Language + Wasm | ✅ | ✅ | ✅ | ✅ |
Set the platform with a jsRuntime config when you create a VM, or omit it for full Node. Two independent knobs sit alongside it: moduleResolution controls how imports resolve, and allowedBuiltins restricts which node:* modules the guest can import.
moduleResolution | import "pkg" | import "./x.js" | node:* |
|---|---|---|---|
node (default) | ✅ | ✅ | ✅ |
relative | No | ✅ | No |
none | No | No | No |
npm install secure-exec