Automation
n8n 2.50.0 and 3.4.0: QuickJS Sandboxing, Outbound SSRF Guards, and Self-Hosted AI Agent Hardening
Released on November 24, 2026, n8n 2.50.0 and pre-release 3.4.0 bring synchronized hardening across self-hosted AI agents, QuickJS expression sandboxing, outbound SSRF redirect protection, and crash-based auto-unpublishing. Here is what changed since v2.48.8/2.49.5 and how the n8n 3.0 Docker-only and runner-timeout defaults affect production upgrades.
7 min read
n8n 2.50.0 and 3.4.0: QuickJS Sandboxing, Outbound SSRF Guards, and Self-Hosted AI Agent Hardening
Executive Summary
- Synchronized November 24, 2026 Releases (GitHub Releases): n8n shipped pre-release v2.50.0 and v3.4.0 on November 24, 2026, immediately following stable v2.49.5 and v2.48.8 on November 23, 2026—delivering identical core fixes across both the 2.x and 3.x release lines.
- Outbound SSRF & Redirect Guardrails (GitHub Releases, n8n 3.0 Docs): Both
2.50.0and3.4.0expand the default blocked IP ranges for the outbound request guard (#38912) and prompt for approval whenfetch-urlis redirected to another domain (#44491), complementing n8n 3.x's expandedN8N_SSRF_BLOCKED_IP_RANGESdefaults (::/128,100.64.0.0/10,2002::/16,64:ff9b::/96). - QuickJS Expression Sandboxing & Memory Limits (GitHub Releases): Following
v2.48.8's fix to throw explicitly when an expression hits the QuickJS memory limit (#44687),2.50.0and3.4.0preserve NUL characters crossing the QuickJS bridge (#44528), keep small objects insideErrorinstances in sandboxed expressions (#44249), and release memory-guard holds when stopping fails to free memory (#44417). - AI Agent Isolation & Self-Hosted Telemetry (GitHub Releases): Self-hosted instances now count agent turns in execution usage (
#43386), isolate each recipient's reply into its own agent session (#41858), enable the WhatsApp Channel Agent (#44416), and count per-workflow process crashes for auto-unpublishing (#43685).
What Changed in n8n 2.49.5, 2.50.0, and 3.4.0
Because n8n maintains parallel 2.x (stable/beta) and 3.x (v3.4.0) release trains, platform engineers running self-hosted instances need to track both the shared runtime patches in 2.50.0/3.4.0 and the structural defaults that separate the 3.x branch from 2.x.
flowchart LR
A[Incoming Trigger / WhatsApp / Webhook] -->|Per-Recipient Session #41858| B[AI Agent & Builder Engine]
B -->|Expressions| C[QuickJS Sandbox Bridge #44528 / #44687]
B -->|Outbound HTTP / fetch-url| D[SSRF & Redirect Guard #38912 / #44491]
C -->|Memory Hold / Crash Tracking| E[Process Crash Watch #43685]
D -->|Approved Domain| F[External APIs & Tools]1. Outbound Request Guard and Redirect Approval
Workflow engines that let LLMs or dynamic expressions construct HTTP requests are frequent targets for Server-Side Request Forgery (SSRF) via open redirects or carrier-grade NAT/IPv6 transition ranges. In n8n@2.50.0 and n8n@3.4.0:
- Expanded Default Blocked IP Ranges (
#38912): The outbound request guard widens its default blocked IP ranges to close gaps in private/special-purpose addressing. - Cross-Domain Redirect Approval (
#44491): Whenfetch-urlencounters an HTTP redirect to a different domain, core now requires explicit approval rather than silently following the redirect chain.
On the 3.x branch (v3.0 Breaking Changes), when N8N_SSRF_PROTECTION_ENABLED is true and N8N_SSRF_BLOCKED_IP_RANGES includes default, n8n blocks four additional ranges by default: ::/128 (IPv6 unspecified), 100.64.0.0/10 (carrier-grade NAT shared address space), 2002::/16 (6to4), and 64:ff9b::/96 (NAT64).
2. QuickJS Expression Bridge and Memory Guard Stability
To isolate user and AI-generated JavaScript expressions from the main Node.js process, n8n relies on the QuickJS sandbox engine. Across 2.48.8 (Nov 23) and 2.50.0/3.4.0 (Nov 24), n8n landed four targeted sandbox fixes (GitHub Releases):
- Explicit Memory Limit Errors (
#44687): Expressions that exceed the QuickJS memory ceiling now throw cleanly instead of failing unpredictably. - NUL Byte & Error Object Fidelity (
#44528,#44249): Strings containing NUL characters survive crossing the QuickJS bridge, and small metadata objects attached toErrorinstances are preserved inside sandboxed expressions. - Memory Guard Hold Release (
#44417): If a hold-limit stop frees no memory, core releases the memory-guard hold rather than stalling subsequent workflow runs.
3. AI Agent Sessions, AI Builder, and Crash Auto-Unpublishing
For teams building multi-user conversational agents on n8n:
- Session & Memory Hygiene (
#41858,#43935,#44416): Core enables the WhatsApp Channel Agent, isolates each recipient's reply into its own agent session, and limits WhatsApp recipients by run origin (#42966), while the AI Agent node drops empty chat-memory turns so blank messages do not corrupt prompt history. - AI Builder Long-Running Steps (
#44472,#44591): The n8n Assistant can now run a single node for up to 10 minutes, and"Always allow"approvals for archive/unpublish actions apply across all workflows in a thread. - Crash-Driven Auto-Unpublishing (
#43685): Core tracks process crashes per workflow to auto-unpublish unstable workflows before they repeatedly crash worker containers.
# Example self-hosted Docker Compose environment hardening for n8n 3.x
services:
n8n:
image: docker.n8n.io/n8nio/n8n:latest
environment:
- N8N_DEFAULT_BINARY_DATA_MODE=s3
- N8N_SSRF_PROTECTION_ENABLED=true
- N8N_SSRF_BLOCKED_IP_RANGES=default
- N8N_RUNNERS_TASK_TIMEOUT=120
- N8N_UNVERIFIED_PACKAGES_ENABLED=false
Reliability, Cost, and Performance Analysis
Choosing between staying on the 2.49.5 / 2.50.0 branch or moving to 3.x (3.4.0 pre-release) hinges on deployment tooling, runner timeouts, and licensing constraints.
| Operational Dimension | n8n 2.x (2.49.5 / 2.50.0) |
n8n 3.x (3.0+ / 3.4.0) |
Production Impact |
|---|---|---|---|
| Deployment Method | Docker or global npm / npx n8n |
Docker required; npm package retired (n8n 3.0 Docs) | Teams using npx n8n must migrate to Docker Compose + Postgres |
| Task Runner Timeout | 300 seconds (5 minutes) default |
60 seconds default (N8N_RUNNERS_TASK_TIMEOUT) |
Long Code-node scripts time out unless explicitly raised |
| Compression Limits | 2 GiB max size / 5,000 zip entries | 256 MiB max size / 1,000 zip entries | Large archive workflows fail unless env vars are overridden |
| Unverified npm Nodes | N8N_UNVERIFIED_PACKAGES_ENABLED=true |
false by default |
Unverified community npm nodes stop loading on upgrade |
| Binary Data Mode | default (in-memory) still accepted |
Removed; boot guard checks s3 config (#37337) |
Must set filesystem, s3, azure, or database |
| Self-Hosted Usage Metering | Standard execution counting | Counts AI agent turns in self-hosted usage (#43386) |
Multi-turn agent loops affect self-hosted usage metrics |
Hosting, Licensing, and Queue Mode Scaling
As documented in Founderz's November 24, 2026 n8n technical guide, n8n is source-available under the Sustainable Use License (a fair-code license restricting third-party SaaS resale) rather than an OSI-approved open-source license. Teams self-hosting the free Community Edition retain infrastructure control and data residency, while trading off managed upgrades and backups.
For high-throughput production workloads, n8n recommends queue mode: a main process ingests webhooks, Redis queues pending executions, Postgres replaces SQLite as the backing store, and horizontal worker processes execute jobs (Founderz). In 3.x, OFFLOAD_MANUAL_EXECUTIONS_TO_WORKERS is removed because manual executions always run on workers in queue mode, meaning worker memory limits must be sized to absorb ad-hoc editor test runs (n8n 3.0 Docs).
Practical Implementation and Trade-Offs
Before upgrading a production n8n instance to 2.50.0 or the 3.x train:
- Run the Built-In Migration Report: Navigate to Settings > Migration Report first. Notably,
2.48.8and2.50.0/3.4.0grant custom instance roles access to the Migration Report (#44667,#44656) and add explanations for the last run state of workflows (#44282), making pre-upgrade audits easier for platform teams without full superadmin access. - Audit Binary Storage & Volume Paths: In
3.x,~/.n8n/binaryDatais renamed to~/.n8n/storage, and n8n refuses to start if both directories exist (n8n 3.0 Docs). Furthermore,2.50.0/3.4.0add a boot-time guard for misconfigured S3 binary data modes (#37337). Verify volume mounts andN8N_DEFAULT_BINARY_DATA_MODEin staging before rolling production containers. - Check Slack & MCP Integrations: In
3.x, workflows with a Slack Trigger node fail to activate unless the Slack API credential includes a Signing Secret (n8n 3.0 Docs). For AI-driven MCP triggers,2.48.8adds explicit reporting for MCP workflow trigger activation failures (#44589), helping diagnose silent registration errors. - Decide Between n8n, Temporal, and Code-First Engines: Use n8n when cross-functional teams benefit from visual node graphs, 400+ built-in connectors, and quick JS/Python Code nodes; choose code-first orchestrators like Temporal or Trigger.dev when workflows require strict deterministic replay, unit-tested TypeScript/Go state machines, or per-step distributed transactions.
Frequently Asked Questions
Are n8n 2.50.0 and 3.4.0 production-ready stable releases?
No. On GitHub Releases, both n8n@2.50.0 and n8n@3.4.0 (released November 24, 2026) are marked Pre-release, while n8n@2.49.5 (released November 23, 2026) is tagged Latest / stable.
Can I still run self-hosted n8n 3.x via npx n8n or global npm install?
No. Starting with n8n 3.0, self-hosted n8n requires a Docker-based deployment and no longer publishes a runnable n8n package to npm (v3.0 Breaking Changes).
Why did my Code node or Compression node start failing after upgrading to 3.x?
n8n 3.x lowers two default limits for safety: N8N_RUNNERS_TASK_TIMEOUT drops from 300 seconds to 60 seconds, and N8N_COMPRESSION_NODE_MAX_DECOMPRESSED_SIZE_BYTES drops from 2 GiB to 256 MiB (with max zip entries cut from 5,000 to 1,000). Override those environment variables explicitly if your workloads exceed the new defaults (v3.0 Breaking Changes).
How does n8n count AI agent usage on self-hosted instances in 2.50.0 / 3.4.0?
Commit #43386 in 2.50.0 and 3.4.0 updates core to count individual agent turns in self-hosted execution usage, giving operators visibility into multi-step LLM agent loops (GitHub Releases).
What happens if an HTTP Request or fetch-url call redirects to an internal IP or another domain?
n8n@2.50.0 and 3.4.0 expand default blocked IP ranges for the outbound request guard (#38912) and require approval when fetch-url redirects to another domain (#44491), while 3.x adds ::/128, 100.64.0.0/10, 2002::/16, and 64:ff9b::/96 to N8N_SSRF_BLOCKED_IP_RANGES (GitHub Releases, v3.0 Breaking Changes).
Sources
- GitHub (
n8n-io/n8n) — Releases:n8n@3.4.0,n8n@2.50.0,n8n@2.49.5,n8n@2.48.8(November 23–24, 2026): https://github.com/n8n-io/n8n/releases - n8n Docs — v3.0 Breaking changes (Updated October/November 2026): https://docs.n8n.io/changelog/v30-breaking-changes
- Founderz — n8n workflow automation platform for AI agents and complex automations, step by step (November 24, 2026): https://founderz.com/blog/n8n/