Critical Unauthenticated RCE in n8n Enables Full Instance Takeover
Vulnerability Disclosure · 2 sources · Updated 2mo ago · First seen Jan 6, 2026

A critical CVSS 10.0 vulnerability in locally deployed n8n automation instances, tracked as CVE-2026-21858 and dubbed Ni8mare, enables unauthenticated attackers to read arbitrary local files, bypass authentication, and execute commands. The flaw stems from Content-Type confusion in webhook parsing: the Form Webhook node can invoke file handling without requiring multipart/form-data, allowing attacker-controlled file paths to be copied into persistent storage. Researchers estimate that roughly 100,000 internet-exposed servers may be affected.
Attackers can use the file-read primitive to obtain sensitive files, including /etc/passwd, the local SQLite database, and n8n configuration secrets. With database contents and the instance secret, they can forge an n8n-auth session cookie, gain administrator access, and create workflows using the Execute Command node for remote code execution. Organizations running self-hosted n8n should upgrade to version 1.121.0 or later; no official workaround is available.


