n8n's Ni8mare flaw and the keys an automation holds
A maximum-severity flaw let anyone online take over a self-hosted n8n server through a vulnerable form, and every password its automations use.
Published · 3 min read

On 7 January the security firm Cyera published Ni8mare, CVE-2026-21858, a flaw in n8n, the workflow automation tool, rated 10.0 out of 10. On a self-hosted n8n server with a vulnerable form workflow, anyone on the internet could read the server's files, forge an administrator's login and run commands, with no password at any step. n8n had shipped the fix in version 1.121.0 on 18 November 2025, yet on the day of disclosure Censys counted 26,512 n8n servers on the internet running older versions. What made it serious is what such a server holds: the logins for every system its automations connect to.
How a form became a way in
The flaw sits in how n8n handles forms. A form that takes file uploads expects one kind of request, and Cyera found that a request of another kind let the sender name any file on the server in place of the upload. Its researchers used that to read n8n's own database and configuration file, which held everything needed to forge a valid administrator session, and then created a workflow with a step that runs system commands. n8n's advisory lists every version from 1.65.0 up to the fix as affected.
It was one of four critical n8n flaws disclosed in two weeks, The Hacker News counted, and the only one that needed no login. On 11 March CISA added another of the four, CVE-2025-68613, which does need a signed-in user, to its catalogue of flaws exploited in attacks.
Why an automation server is worth more than it looks
Cyera put the stakes plainly: a compromised n8n server means handing attackers the keys to everything, because API credentials, OAuth tokens, database connections and cloud storage are all kept in one place. An automation that copies form entries into a spreadsheet, files invoices in the accounting system and posts a summary to the team chat holds a working login for each of them. Whoever controls the server controls those logins too.
A tool like this can be set up by one person in an afternoon, which is its appeal. Nothing in that afternoon makes anyone put it behind a login, decide who patches it, or write down what it can reach.
What it means when I join up your systems
Joining up what an office already uses is part of my work: QuickBooks, Stripe, PayMongo, Google Workspace, single sign-on. Every one of those connections runs on a credential, and Ni8mare asks the right question about each: where does it live, and how much can it do? The keys belong in the client's own accounts, where the client can see them and change them without me.
I would also give each connection only what it needs: read access where the automation only reads, one folder rather than the whole drive, and a separate account for each link, so that one can be cut off without stopping the rest. An automation built that way still holds keys, but not the keys to everything.
Five checks for any automation server
- Find every automation tool in the office, including the one someone set up to save an afternoon, and list what each one connects to.
- Keep it off the open internet. Put it behind a VPN or a login, and require authentication on every form, as Cyera advises.
- Patch it on a schedule, like any other server. The Ni8mare fix was out seven weeks before the flaw was made public.
- Give each connection its own account, with the narrowest access the workflow needs.
- If a server was exposed before it was patched, change every credential it stores, not only its own password.
If an automation already sits between your systems and nobody is sure what it can reach, that is a good question to bring to the fit check.
Sources
- Cyera Research Labs, Ni8mare: Unauthenticated Remote Code Execution in n8n (CVE-2026-21858), 7 January 2026
- n8n, Unauthenticated File Access via Improper Webhook Request Handling, 7 January 2026
- Censys, January 7 Advisory: n8n Unauthenticated Remote Code Execution (NI8MARE) [CVE-2026-21858], 7 January 2026
- The Hacker News, Critical n8n Vulnerability (CVSS 10.0) Allows Unauthenticated Attackers to Take Full Control, 7 January 2026
- Cybersecurity and Infrastructure Security Agency, CISA Adds One Known Exploited Vulnerability to Catalog, 11 March 2026
Enrique Lacambra III builds internal business systems from Cainta, Rizal.
Tell me what is broken and I will tell you if it is worth building. A 20-minute call, no charge, and I will say so if you do not need me.
