NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · n8n

CVE-2026-27496: n8n has In-Process Memory Disclosure in its Task Runner

highCVSS 4.0 7.1 · 3.1 6.5GHSA-xvh5-5qg4-x9qp

n8n's JavaScript Task Runner can leak memory from its own process. A user who can create or edit workflows can allocate uninitialized buffers that hold leftovers from earlier requests, tasks, secrets or tokens. It only applies when `N8N_RUNNERS_ENABLED=true`. Fixed in n8n 1.123.22, 2.9.3 and 2.10.1.

Published Mar 25, 2026 · Updated Mar 27, 2026 · Analysis Oct 31, 2026

What an attacker can do

When task runners are enabled, workflow Code nodes run JavaScript in a runner process. An authenticated workflow author could make that code allocate uninitialized memory buffers (CWE-908). Node.js does not zero such buffers, so they can contain residue from the same process: data from earlier requests and tasks, secrets and tokens.

The attacker needs a login with permission to create or modify workflows. No user interaction is needed. The CVSS vector shows a confidentiality impact only, with no integrity or availability impact.

How much leaks depends on the runner mode. In external runner mode the exposure is limited to data inside the external runner process. In the default internal mode the runner shares the process with n8n, so credentials, tokens and other users' workflow data can be exposed. Instances where several teams or less-trusted users edit workflows are the main concern.

Who is affected

The npm package n8n below 1.123.22; from 2.0.0-rc.0 up to but not including 2.9.3; and 2.10.0 up to but not including 2.10.1. Only instances with N8N_RUNNERS_ENABLED=true are affected. Check the version and setting:

npm ls n8n
env | grep N8N_RUNNERS

n8n

Ecosystem
npm
Affected
< 1.123.22
Fixed in
1.123.22
Check
npm ls n8n

n8n

Ecosystem
npm
Affected
>= 2.10.0, < 2.10.1
Fixed in
2.10.1
Check
npm ls n8n

n8n

Ecosystem
npm
Affected
>= 2.0.0-rc.0, < 2.9.3
Fixed in
2.9.3
Check
npm ls n8n

How to fix it

Upgrade to n8n 1.123.22, 2.9.3 or 2.10.1, or later on your line.

npm install -g [email protected]

The advisory offers two temporary mitigations that do not fully remove the risk: limit workflow creation and editing to fully trusted users, and run runners in external mode with N8N_RUNNERS_MODE=external to isolate the runner process.

How to tell if you were hit

The advisory gives no indicators. Review recent workflow changes for Code nodes that allocate buffers in unusual ways, such as Buffer.allocUnsafe, and check who made them. Memory disclosure leaves no trace on the server, so if untrusted users could edit workflows on an affected version, consider rotating credentials the n8n process handled.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Impact

An authenticated user with permission to create or modify workflows could use the JavaScript Task Runner to allocate uninitialized memory buffers. Uninitialized buffers may contain residual data from the same Node.js process — including data from prior requests, tasks, secrets, or tokens — resulting in information disclosure of sensitive in-process data.

  • Task Runners must be enabled using N8N_RUNNERS_ENABLED=true.
  • In external runner mode, the impact is limited to data within the external runner process.

Patches

The issue has been fixed in n8n versions >= 1.123.22, >= 2.10.1 , and >= 2.9.3. Users should upgrade to this version or later to remediate the vulnerability.

Workarounds

If upgrading is not immediately possible, administrators should consider the following temporary mitigations:

  • Limit workflow creation and editing permissions to fully trusted users only.
  • Use external runner mode (N8N_RUNNERS_MODE=external) to isolate the runner process.

These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.

Credited to c0rydoras.

Questions

Does this affect me if task runners are off?

No. The advisory says task runners must be enabled with N8N_RUNNERS_ENABLED=true for the issue to apply.

Does external runner mode help?

Partly. In external mode the impact is limited to data inside the external runner process. The advisory still calls it only a temporary mitigation.

Can an anonymous visitor exploit it?

No. The attacker needs an account with permission to create or modify workflows.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More n8n vulnerabilities

All n8n entries