Akamai Observed Zerobot Attempting to Exploit an n8n Expression Flaw
Teams use n8n to automate work. An affected version let an account that could edit workflows run code with the server's permissions. Akamai observed the Zerobot botnet attempting to use that flaw against its decoy servers. CISA lists the vulnerability as known exploited. The honeypot report does not identify a compromised production deployment.
What the flaw let a workflow builder do. In n8n, a workflow is a chain of nodes, and many node settings can hold an expression that the server computes when the workflow runs, for example to take a value from an earlier step. Those expressions are meant to run in a restricted evaluation environment, not with full access to the server. According to n8n's advisory and the CVE record, in versions from 0.211.0 up to but not including 1.120.4, and in 1.121.0, an expression supplied by an authenticated user while configuring a workflow could, under certain conditions, be evaluated in a context not sufficiently isolated from the underlying runtime, so that user could run arbitrary code with the privileges of the n8n process. n8n lists the possible results as full compromise of the instance, including unauthorized access to sensitive data, modification of workflows and system-level operations. Akamai adds that exploitation needs only an ordinary login without administrative privileges, and in n8n's built-in roles the Member role, offered on every plan, can create and manage its own workflows.
What Akamai observed. Akamai SIRT reported on February 27, 2026 that Zerobot, a botnet built on the widely reused Mirai malware and active since at least early December 2025, had added exploits for two recently disclosed flaws: this n8n vulnerability and CVE-2025-7544 in Tenda AC1206 routers. Its honeypots, decoy systems set up to attract and record attacks, first captured the attempts in mid-January 2026, which Akamai describes as the first reported active exploitation of these flaws. The n8n attempt is a request to the server's interface for running a workflow. On a vulnerable server it makes n8n download and run a shell script, which then fetches a Mirai-based program named zerobotv9, built for several processor architectures and set to contact a hard-coded command-and-control (C2) domain, the address infected machines use to receive the operator's commands. Akamai's evidence comes from honeypots: it names no compromised organization and does not say how the botnet obtained an n8n login. Intel 471 lists possible routes, such as open self-registration, password guessing, reused leaked passwords or chaining a separate n8n flaw (CVE-2026-21858), but no source shows which one was used. What the observed requests try to install is botnet malware that would turn the server into one more bot; the report does not mention any interest in n8n's AI features or stored credentials.
Why teams running AI workflows on n8n should care. n8n's documentation presents it as a place to build AI-powered workflows with LLM providers, agents, tools, memory and MCP servers (Model Context Protocol, a standard way to connect AI applications to external tools and data), and the credentials those integrations need are stored in n8n, protected by the instance's N8N_ENCRYPTION_KEY. Code that runs as the n8n process can reach whatever that process can reach. Akamai notes that an attacker could read and write files on the server, steal environment variables such as API keys, set up persistence and use the server to move further into the network; these are possibilities Akamai describes, not actions it reports Zerobot taking.
Fixes, scores and exposure. n8n published its advisory (GHSA-v98v-ff95-f3cp) on December 19, 2025, crediting the reporters fatihhcelik and yuvalo1212. The CVE record lists 1.120.4, 1.121.1 and 1.122.0 as fixed releases, while the advisory text tells users to upgrade to 1.122.0 or later. Severity scores differ by source on CVSS, the 0 to 10 Common Vulnerability Scoring System: the GitHub Advisory Database rates the flaw 9.9; the CVE record's current entry from GitHub, the authority that assigned the CVE, lists 10.0 for the same vector; and NIST's National Vulnerability Database (NVD) rates it 8.8 because it scores the impact as staying within the vulnerable component, whereas the 9.9 rating counts it as reaching beyond n8n itself. CISA added the flaw to the KEV catalog on March 11, 2026 and gave US federal civilian agencies until March 25 to fix it. The Hacker News, citing Shadowserver Foundation data (a nonprofit that continuously scans the internet for exposed systems), reported that more than 24,700 unpatched instances were still reachable from the internet in early February 2026.
The same evaluation code needed more fixes. n8n later published further advisories describing other ways to escape expression evaluation: CVE-2026-25049 on February 4, 2026 (fixed in 1.123.17 and 2.5.2), CVE-2026-27577 on February 25, 2026 (fixed in 1.123.22, 2.9.3 and 2.10.1), and GHSA-9x83-43r8-5hwc on August 19, 2026 (later recorded by VulnCheck as CVE-2026-85169, fixed in 1.123.73, 2.35.4 and 2.36.2). Each again required permission to create or modify workflows, and none is in the KEV catalog as of its November 30, 2026 version. Each patch closes the flaw it names, but the history shows that expression isolation is a safeguard n8n keeps repairing rather than a boundary a deploying team can rely on. The boundaries a team controls are who may build workflows, where the editor can be reached from, and what the n8n process can reach if code escapes.
Deployed AI Software Vulnerability Remediation Lifecycle
Very High
The vendor fix is the only control here that removes the flaw itself, so the work is getting it onto every server. Rebuild each self-hosted n8n deployment, including the worker processes of queue mode, on a current supported image, roll it out in stages, and read the version back from the running process rather than from compose files or Helm values. Once a release containing the fix runs, n8n evaluates a workflow builder's expressions under its added safeguards, and CVE-2025-68613 no longer gives that builder code execution on the host. The fix covers this flaw only: CVE-2026-25049, CVE-2026-27577 and GHSA-9x83-43r8-5hwc each needed a later release, which is why the target is the current supported version rather than the first fixed one.
On an unpatched server, any account that can build workflows can reach the flaw. Reserve Member and project Admin or Editor roles for people who need to build. On self-hosted Business or Enterprise, use Viewer for read-only access and Chat user for chat-only access. Review the list regularly and disable inactive accounts. A stolen builder account can still reach the flaw until you patch. Require a second sign-in check for workflow builders. Users can enable n8n's two-factor authentication themselves, Enterprise can enforce it, and teams using single sign-on can require it at their identity provider. This blocks a guessed or leaked password alone. Zerobot's login route is unknown, and a stolen or forged session can bypass the sign-in check.
Zerobot's chain only pays off if the n8n server can download the shell script and the bot program and then reach its command-and-control domain. Put the n8n hosts behind a firewall or egress proxy that blocks outbound connections by default and allows, by FQDN or TLS SNI, only the services your workflows call: the model providers or AI gateway, the SaaS APIs and databases they integrate, and n8n's update and community-node sources if you use them. On an affected server the injected code still runs, but the download and the C2 connection fail and appear as denied connections in the egress log. On cloud hosts, also deny the instance metadata address (169.254.169.254) to n8n unless a hardened proxy mediates it, so injected code cannot pick up the host's cloud role credentials. The block does not stop code from reading the credentials and data n8n holds, data can still leave through an allowed destination, and workflows that call arbitrary URLs by design make the allowlist hard to keep tight.
Zerobot sends its exploit from the internet, and to do so it has to reach n8n's sign-in and the interface that runs workflows. Put the n8n hosts in their own segment and accept connections to the editor, its REST interface and the public API only from the administrators' network or VPN; if workflows need public webhooks, publish only those webhook paths. An internet botnet then cannot reach the login or send the workflow-run request at all. In the other direction, allow the n8n hosts to reach only the internal hosts and ports their workflows use, so that a compromised server cannot scan or connect to the rest of the internal network, which is the lateral movement Akamai warns about. Anyone who can reach the editor from the allowed network with a workflow-building login can still exploit an unpatched server, and the server keeps every connection its workflows legitimately need.
AI Host Process Lineage & Persistence-Write Detection
High
A workflow server should start very few programs, and the Zerobot chain shows up exactly there: the n8n process starts a shell that runs a downloader, which then starts the bot. Run n8n under its own service account and record every program started beneath it, with the command line and parent chain, through EDR or Linux audit rules on that account; alert on shells, download tools such as curl and wget, and any program not on a short approved list. Intel 471 recommends the same signal for this flaw. It catches the download-and-run step of the observed chain, and also afterwards if the telemetry is retained. Code that reads credentials or data inside the n8n process without starting a program leaves no trace here, and n8n features that start processes legitimately, such as the Execute Command node or task runners running as child processes, must be on the approved list or they will bury the alert.
Once a host shows signs of the chain, stopping the running bot comes first, because it keeps taking commands for as long as it runs. After capturing volatile evidence, the host owner terminates the exact bot processes and the compromised n8n process on that host, binding each target to its PID namespace, start time and executable so that a reused PID is not hit, prevents automatic restart, and confirms with a separate check that the processes are gone. This stops active malicious execution; it does not remove files the bot wrote, revoke exposed credentials or close the flaw.
If an affected instance was reachable while unpatched and compromise cannot be ruled out, every long-lived secret n8n stored or could read should be treated as disclosed: model-provider API keys, cloud access keys, database passwords, SMTP and webhook secrets, and secrets in its environment. Their owners revoke each one at the service that issued it, issue a replacement to every consumer, and confirm the old value is rejected. Changing what n8n stores is not enough, because n8n's documentation notes that a new encryption key does not protect credentials from anyone who already holds the old key and a copy of the database. Revocation ends further use of what was taken; it cannot recall data already read with it.
Delegated Grant & Connected-App Authorization Revocation
High
Workflows that connect to Google, Microsoft or other SaaS accounts through OAuth hold refresh tokens, and n8n's documentation lists OAuth tokens among the secrets its encryption key protects. A copied refresh token keeps obtaining new access tokens even after passwords and API keys are rotated. For each OAuth credential stored in an exposed instance, the owner of the connected account revokes the app's grant or consent in that provider's console, reconnects the new instance with a fresh authorization, and confirms the old refresh token can no longer obtain access. This applies only to OAuth-based connections and does not recall data already read through them.
Code that ran as the n8n process could have read N8N_ENCRYPTION_KEY, and n8n's documentation says that key cannot be changed on an existing database: a compromised instance key means moving to a new database and instance with a new key. Run that recovery in a fixed order and stop if any step fails its check: revoke and rotate the upstream credentials first, build the new instance from a current patched image with a newly generated key, import only workflows that passed review, enter the new credential values, recreate users with the narrowed roles and MFA, and only then switch traffic and retire the old instance, database, backups and key. The result is an instance whose key and secrets the attacker never saw. Users, execution history and settings do not move in n8n's export and must be rebuilt, and the order only helps if each prerequisite step is actually verified.
What Defenders Should Do Now
Find every n8n instance and upgrade it. Read the running version from each instance, including containers and queue-mode workers, rather than from deployment files. Versions from 0.211.0 up to but not including 1.120.4, and 1.121.0, are affected by CVE-2025-68613. Move them to a current supported release rather than only the first fixed version, because the later expression advisories were fixed only in 1.123.73, 2.35.4 and 2.36.2. Where an upgrade has to wait, follow n8n's temporary workarounds: limit workflow creation and editing to fully trusted users and restrict the instance's network access, for example by taking it off the internet, with an owner and an end date for that exception.
Treat permission to build workflows as permission to run code on the host. List every account that can create or edit workflows: owners, admins, members, and project admins and editors. Remove that right from anyone who only needs to see workflows and their results, or only uses n8n Chat; the read-only project Viewer role and the Chat user role (Business or Enterprise on self-hosted n8n) cover those needs. Make sure nobody can create an account without an administrator's invitation or SSO assignment, require two-factor authentication or single sign-on with MFA, and disable the public API if no automation uses it. Test with an account that should not build workflows: creating or saving a workflow must be refused.
Keep the editor off the open internet and limit what the server can reach. From a network outside your organization, check that the n8n editor and its REST interface do not answer; put them behind a VPN or an access proxy that signs users in through your identity provider. If workflows need public webhooks, publish only the webhook paths external services actually call. Block outbound connections by default and allow only the services your workflows call; a test request from inside the container to an unapproved host must fail and appear in the firewall or proxy log.
Look back for signs of the Zerobot chain. On hosts that ran an affected version while reachable from the internet, search process telemetry since December 2025 for programs started beneath the n8n process, especially shells, curl and wget, and compare network logs and files with the indicators of compromise (IOCs, such as malicious IP addresses, domains and file hashes) that Akamai published.
If compromise cannot be ruled out, rebuild and revoke. Isolate the host and stop the n8n process and every program it started. Because code ran as the n8n process, treat N8N_ENCRYPTION_KEY, the database and every credential n8n stored as exposed. Follow n8n's procedure for a compromised instance key, which moves workflows and credentials to a new instance and database with a new key; import only workflows that have been reviewed; and revoke and rotate each stored credential, including AI provider API keys, cloud keys, database passwords and OAuth grants, at the service that issued it. Confirm the old values are rejected before reconnecting.
1 additional consideration
Turn off the n8n public API where no automation uses it
n8n's REST API keys let automation manage workflows without a browser login, so every key that can create or change workflows deserves the same care as a builder account.
Recommendation: n8n administrators can disable the public API, as n8n's security checklist recommends when nobody uses it. Where automation does use it, list every API key with its owner and purpose, revoke keys that are no longer needed, and include the remaining keys in the periodic review of workflow-building rights. Test by calling the API with a revoked key and confirming the request is refused. Keys that legitimate automation still needs remain sensitive credentials.
Conclusion
Akamai observed attempts to exploit n8n in a honeypot. For teams using n8n to run AI workflows, AIDEFEND ↗ points to upgrading the running service, limiting who may edit workflows and blocking unapproved outbound connections. Check the host and replace exposed credentials if there is evidence that malicious code ran.