Is n8n Safe to Use in Business? A Security Review of the CVEs, Community Nodes and AI Agents
Try it live
Watch Agentshield block an attack in real time.
Pick a scenario and drive the inspection lane yourself. No signup needed.
Run a request
Inspection lane
INSPECTINGPolicy trace
High-risk action held for approval
Audit trail
- § · → → →
n8n is safe enough for business use on three conditions: you run version 1.123.17 or 2.5.2 or later, you decide a community node policy on purpose rather than by default, and you scope the credentials it stores to the narrowest thing that still works. The first condition is not really optional. One n8n remote code execution vulnerability was added to CISA's Known Exploited Vulnerabilities catalog in March 2026 after evidence of active exploitation, which means someone was already using it against real instances.
That is the short answer. The longer one is more useful, because the risk that remains after patching has very little to do with n8n's code and quite a lot to do with the fact that n8n is where your credentials live.
Is n8n secure?
n8n itself is a reasonably well-run open source project that publishes security advisories, ships a built-in audit command, and documents its risks more honestly than most commercial vendors. It also had a difficult stretch between December 2025 and February 2026, when three critical remote code execution issues were published in quick succession. All three are fixed. The security question for your business is therefore not "is the software good," it is "which version are we running and who is accountable for that."
Here is the record, taken from the NVD entries rather than from summaries of them.
| CVE | Severity | Needs a login? | Fixed in |
|---|---|---|---|
| CVE-2026-21858, nicknamed Ni8mare | CVSS 3.1 base 10.0 critical | No. NVD describes it as reachable by "an unauthenticated remote attacker" through certain form-based workflows | 1.121.0 |
| CVE-2025-68613 | 8.8 high per NIST, 9.9 critical per the CNA. ‼️ Added to the CISA exploited catalog on March 11, 2026 | Yes, an authenticated user who can create or edit workflows | 1.120.4, 1.121.1 or 1.122.0 |
| CVE-2026-25049 | CVSS 4.0 base 9.4 critical, CVSS 3.1 base 9.9 | Yes, same population as above | 1.123.17 or 2.5.2 |
Two of those need an authenticated user, and teams tend to read that as reassurance. Be careful with it. The group of people who can edit an n8n workflow is usually much wider than the group you would deliberately hand shell access to on that server, and it frequently includes contractors, an agency, or a login three people share. In these versions, editing a workflow and running commands on the host were the same privilege.
How safe is n8n compared to other automation platforms?
The comparison people expect is n8n against a closed SaaS competitor, and it usually produces the wrong conclusion. A hosted competitor does not publish CVEs against its own runtime, so its list looks shorter. That is a disclosure artifact, not a safety measurement. What genuinely differs is who carries the patching duty and how much of the platform you can inspect.
The more honest comparison is n8n Cloud against self-hosted n8n, because that is the decision you actually make. Cloud takes patching off your plate, which removes the exact risk that has been exploited in practice. Self-hosting gives you data location control and the ability to switch community nodes off entirely, and hands you the upgrade responsibility. If nobody in your organization owns "keep this current," Cloud is the safer choice for reasons that have nothing to do with n8n's engineering. Worth knowing for a US buyer: n8n states that the hardware powering its platform and the data stored on it are currently hosted in the European Union.
Are n8n community nodes safe?
Treat them as untrusted code running with full privileges, because that is what n8n's own documentation says they are. From the community nodes risk page: "Community nodes have full access to the machine that n8n runs on, and can do anything, including malicious actions." It adds that any community node you install "has access to data in your workflows."
In January 2026 that became concrete. Endor Labs documented a campaign of malicious npm packages published as n8n community nodes, presenting convincing credential forms and harvesting what users typed in. Their explanation of why it worked is the clearest description of the design anyone has published: community nodes "can read environment variables, access the file system, make outbound network requests, and, most critically, receive decrypted API keys and OAuth tokens during workflow execution." They note there is no sandboxing or isolation between node code and the n8n runtime.
The packages had real adoption. The primary sample was reported at roughly 3,498 weekly downloads across fourteen published versions, and one of the sibling packages carried the word "official" in its name, which appears to have been the entire social engineering effort required. What left the building included refresh tokens, which is the detail that matters for incident response: a refresh token survives a password reset and keeps working until somebody explicitly revokes the grant.
The takeaway is not "read the source before installing." Reviewing helps once, and a maintainer can publish a clean version today and a hostile one next month. The controls that hold are structural: disable community nodes if your workflows do not need them, allowlist and version-pin them if they do, prefer n8n's verified nodes, and give the list a named owner.
Is n8n AI safe?
This is the newest question and the one most security reviews miss, because it does not look like a vulnerability.
A normal n8n workflow is deterministic. A trigger fires, your steps run in the order you drew them, and you can reason about every action it might take by looking at the canvas. An AI Agent node deliberately removes that property: it holds a set of tools and picks which to call at runtime. That is the feature you wanted. It also means the diagram no longer describes the behavior, which quietly invalidates the way most people review automations.
Then consider what those workflows read. Agent nodes get built precisely for messy input: inbound support email, form submissions, scraped pages, Slack messages, supplier documents. A very common pattern is an inbox trigger that picks up incoming bills, runs them through automated invoice data extraction, and writes the result straight into the accounting system. Every one of those inputs is text somebody outside your company can influence, arriving at a component that treats text as instructions. That is indirect prompt injection, and it is a different problem from a user typing a jailbreak, as we cover in prompt injection vs jailbreak.
Put those together and the failure is mundane. A ticket contains text addressed to the agent rather than to your support team. The agent holds an HTTP Request tool, a Gmail tool and a Postgres tool, because that combination is what made the workflow worth building. It acts on the instruction. No CVE was exploited, nothing was bypassed, and the workflow did exactly what it was configured to do. The full version of this argument, with the design choices that cause it, is on n8n security.
What should we configure before trusting n8n with business systems?
Six things, in the order that removes the most risk per hour spent.
- Pin the version floor at 1.123.17 or 2.5.2 and verify it against the running instance. Not against the deployment document, which is often describing an instance that was rebuilt since.
- Run
n8n audit. It is built in, most teams have never run it, and it reports across credentials, database, file system, nodes and instance. It flags credentials no longer used by any active workflow, expressions inside SQL node query fields, community and custom nodes, unprotected webhooks and an outdated version. The unused-credential list is usually the fastest cleanup available anywhere in your stack. - Make the community node decision explicit. Off, or allowlisted and pinned. Not "whatever someone installed in 2024."
- Turn on what n8n already ships. Its own guidance is to set up SSL, set up SSO, use two-factor authentication, enable encryption key rotation, and conduct a security audit. Add SSRF protection and disable the public API if nothing calls it.
- Redact execution data. Execution history is a complete copy of everything that passed through the workflow, sitting in a database that more people can read than could call the source system directly. This is a quiet and very common source of exposure.
- Scope the stored credentials down. The CRM credential in n8n usually inherits whatever the person who created it had. A dedicated integration user per workflow, with the narrowest role that still works, is what decides how bad any of the scenarios above actually gets. The reasoning is on least privilege for AI agents.
Items one through five are configuration and belong to whoever operates the instance. Item six is the one that keeps paying out, because it is the only control on the list that limits damage after something has already gone wrong.
So, is n8n safe to use in business?
Yes, for most teams, and the qualifier is smaller than it sounds. Run a current version, decide the community node question deliberately, and stop giving stored credentials more access than the workflow needs. Those three cover the published vulnerabilities, the supply chain campaign, and most of the blast radius from an agent node behaving unexpectedly.
What does not get solved by configuration is the structural part. n8n holds live credentials for your CRM, your billing provider, your warehouse and your email, in one place, because that concentration is what makes it useful. Adding an AI Agent node turned a predictable pipeline into something that chooses at runtime which of those credentials to use. No patch addresses that, and no prompt fixes it either. What helps is containment: give each workflow its own identity instead of a shared service account, hold irreversible actions for a human, and keep the record of what was called somewhere the n8n host cannot rewrite. That is the same conclusion we reached about Cursor and about LangChain, and it is not a coincidence.
See the firewall block an attack live.
Drive the Threat Console and watch a real prompt injection get stopped, then put Agentshield in front of your own agents.
Keep reading