CVE-2026-119408: n8n: RCE via deprecated nodes bypassing task runner
HIGHCVE-2026-119408 lets any authenticated n8n user who can create, modify, or import workflows run arbitrary JavaScript in the n8n main process, because the deprecated Function, Function Item, and LangChain Code nodes execute outside task runner isolation. Although the CVSS is 8.8 (network, low complexity, low privileges), no public exploit, Nuclei template, or KEV listing exists and EPSS is not yet available, so the realistic risk is insider or compromised-account abuse. That risk is amplified because n8n main processes typically hold credentials for LLM providers, databases, and SaaS integrations across the whole instance, and the package has 277 other CVEs and a 69/100 risk score. Upgrade to n8n 2.42.6, 2.43.3, or 3.0.1 now, and until then restrict workflow create/import permissions and review existing workflows for these node types.
What is the risk?
High. Exploitation is network-reachable, low complexity, needs only a low-privileged account with workflow edit/import rights and no user interaction. Impact is full confidentiality, integrity, and availability compromise of the n8n main process. Active exploitation is not observed (not in KEV, no public exploit or scanner template, EPSS N/A), which limits near-term likelihood, but the exploit logic is simple once the hidden node type names are known and the technical description and patch are public. Exposure is highest in multi-user or multi-tenant n8n instances, self-service automation platforms, and instances where workflow import from untrusted sources is allowed. Impact is greater because n8n commonly orchestrates AI agents and stores API keys for many systems.
How does the attack unfold?
What systems are affected?
| Package | Ecosystem | Vulnerable Range | Patched |
|---|---|---|---|
| n8n | npm | — | No patch |
Do you use n8n? You're affected.
How severe is it?
What is the attack surface?
What should I do?
1 step1) Upgrade to n8n 2.42.6, 2.43.3, or 3.0.1 or later (patch commit ea8417e29ad6f8b981d9a04b17283d5d77f2b5bb). 2) Until patched, restrict workflow create, edit, and import rights to trusted administrators, and disable community or untrusted template imports. 3) Audit existing and imported workflows (including via the API and database) for Function, Function Item, and LangChain Code node types and remove or migrate them to the Code node running under task runners. 4) Enable and enforce task runners for code execution where supported, and consider disabling deprecated nodes via NODES_EXCLUDE. 5) Rotate credentials and API keys stored in n8n if suspicious workflow changes are found. 6) Detect: monitor audit logs for workflow creation or import by non-admin users, unexpected outbound connections from the n8n main process, and child processes spawned by n8n. 7) Do not expose n8n editor or API to the internet without strong authentication and network restrictions.
How is it classified?
Which compliance frameworks are affected?
This CVE is relevant to:
Frequently Asked Questions
What is CVE-2026-119408?
CVE-2026-119408 lets any authenticated n8n user who can create, modify, or import workflows run arbitrary JavaScript in the n8n main process, because the deprecated Function, Function Item, and LangChain Code nodes execute outside task runner isolation. Although the CVSS is 8.8 (network, low complexity, low privileges), no public exploit, Nuclei template, or KEV listing exists and EPSS is not yet available, so the realistic risk is insider or compromised-account abuse. That risk is amplified because n8n main processes typically hold credentials for LLM providers, databases, and SaaS integrations across the whole instance, and the package has 277 other CVEs and a 69/100 risk score. Upgrade to n8n 2.42.6, 2.43.3, or 3.0.1 now, and until then restrict workflow create/import permissions and review existing workflows for these node types.
Is CVE-2026-119408 actively exploited?
No confirmed active exploitation of CVE-2026-119408 has been reported, but organizations should still patch proactively.
How to fix CVE-2026-119408?
1) Upgrade to n8n 2.42.6, 2.43.3, or 3.0.1 or later (patch commit ea8417e29ad6f8b981d9a04b17283d5d77f2b5bb). 2) Until patched, restrict workflow create, edit, and import rights to trusted administrators, and disable community or untrusted template imports. 3) Audit existing and imported workflows (including via the API and database) for Function, Function Item, and LangChain Code node types and remove or migrate them to the Code node running under task runners. 4) Enable and enforce task runners for code execution where supported, and consider disabling deprecated nodes via NODES_EXCLUDE. 5) Rotate credentials and API keys stored in n8n if suspicious workflow changes are found. 6) Detect: monitor audit logs for workflow creation or import by non-admin users, unexpected outbound connections from the n8n main process, and child processes spawned by n8n. 7) Do not expose n8n editor or API to the internet without strong authentication and network restrictions.
What systems are affected by CVE-2026-119408?
This vulnerability affects the following AI/ML architecture patterns: Agent frameworks, Workflow automation platforms, LLM orchestration pipelines, RAG pipelines.
What is the CVSS score for CVE-2026-119408?
CVE-2026-119408 has a CVSS v3.1 base score of 8.8 (HIGH). The EPSS exploitation probability is 0.63%.
What is the AI security impact?
Affected AI Architectures
MITRE ATLAS Techniques
AML.T0012Valid AccountsAML.T0050Command and Scripting InterpreterAML.T0055Unsecured CredentialsAML.T0105Escape to HostCompliance Controls Affected
What are the technical details?
Original Advisory
n8n before 2.42.6, 2.43.x before 2.43.3, and 3.x before 3.0.1 contains a remote code execution vulnerability via deprecated Function, Function Item, and LangChain Code nodes running outside task runner isolation. Authenticated users who can create, modify, or import workflows naming these hidden node types can execute JavaScript in the n8n main process.
Exploitation Scenario
An attacker obtains low-privileged credentials to a shared n8n instance, for example through phishing or a leaked token, or is a malicious insider with workflow edit rights. They import a crafted workflow JSON naming a deprecated Function or LangChain Code node, which the UI hides but the backend still accepts. When the workflow executes, their JavaScript runs in the n8n main process outside task runner isolation. The code dumps environment variables and decrypts stored credentials for OpenAI, Anthropic, vector databases, and internal APIs, then exfiltrates them. The attacker then plants a persistent workflow that silently forwards data processed by AI agents, or uses the stolen keys to pivot into the connected systems.
Weaknesses (CWE)
CWE-653Improper Isolation or CompartmentalizationPrimaryCWE-653Improper Isolation or CompartmentalizationCWE-653 — Improper Isolation or Compartmentalization: The product does not properly compartmentalize or isolate functionality, processes, or resources that require different privilege levels, rights, or permissions.
- [Architecture and Design] Break up privileges between different modules, objects, or entities. Minimize the interfaces between modules and require strong access control between them.
Source: MITRE CWE corpus.
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HReferences
- abraxaslabs.tech/research/n8n-function-vm2third-party-advisory
- github.com/n8n-io/n8nproduct
- github.com/n8n-io/n8n/blob/n8n@2.42.0/packages/nodes-base/nodes/Function/Function.node.tstechnical-description
- github.com/n8n-io/n8n/commit/ea8417e29ad6f8b981d9a04b17283d5d77f2b5bbpatch
- github.com/n8n-io/n8n/releases/tag/n8n@2.42.6release-notes
- github.com/n8n-io/n8n/releases/tag/n8n@2.43.3release-notes
- github.com/n8n-io/n8n/releases/tag/n8n@3.0.1release-notes
- github.com/n8n-io/n8n/security/advisories/GHSA-9p7v-45m2-wxgjvendor-advisory
- vulncheck.com/advisories/n8n-before-2.42.6-2.43.3-and-3.0.1-code-execution-outside-task-runner-isolation-via-deprecated-function-nodesthird-party-advisory
Timeline
Related Vulnerabilities
CVE-2026-3366310.0n8n: member role steals plaintext HTTP credentials
Same package: n8nCVE-2026-3366010.0TensorFlow: type confusion NPD in tensor conversion
Same package: n8nCVE-2026-2185810.0n8n: Input Validation flaw enables exploitation
Same package: n8nCVE-2026-275779.9n8n: Code Injection enables RCE
Same package: n8nCVE-2026-274949.9n8n: security flaw enables exploitation
Same package: n8n