# Vercel — How Notion Workers run untrusted code at scale with Vercel Sandbox

- Company: Vercel (vercel.com)
- Announced: 2026-03-12T13:00:00+00:00
- Category: not stated
- Coverage: not counted
- Announcement: yes
- Group: announcements
- Source: https://vercel.com/blog/notion-workers-vercel-sandbox
- Record: https://forck.live/items/20734-how-notion-workers-run-untrusted-code-at-scale-with-vercel-sandbox
- Subject: v0 / AI SDK / AI Gateway

Notion Workers let you write and deploy code to give Custom Agents new powers: sync external data, trigger automations, call any API. With Workers, developers can build agents that sync CRM data on a schedule, open issues when error rates spike, and turn Slack threads into formatted content. Under the hood, every Worker runs on Vercel Sandbox . Copy link to heading The problem: safely running code from any developer or agent Notion wanted to let anyone extend their platform with custom code. That's a hard infrastructure problem, but an even bigger security problem. Every Notion Worker runs arbitrary code generated by a third-party developer or agent, on behalf of a Notion user, potentially inside an enterprise workspace. Without proper isolation, a Worker would run in the same environment as the Custom Agent, with access to its secrets, permissions, and everything else in that execution context. A single prompt injection could exfiltrate credentials or access another user's data. The requirements were clear: Hard isolation : One Notion Worker can never access another's data or state …

---

Record: https://forck.live/items/20734-how-notion-workers-run-untrusted-code-at-scale-with-vercel-sandbox
Catalogue: https://forck.live/llms.txt
Current issue: https://forck.live/feed.md
