Article Details
Scrape Timestamp (UTC): 2026-01-07 13:53:47.926
Source: https://thehackernews.com/2026/01/critical-n8n-vulnerability-cvss-100.html
Original Article Text
Click to Toggle View
Critical n8n Vulnerability (CVSS 10.0) Allows Unauthenticated Attackers to Take Full Control. Cybersecurity researchers have disclosed details of yet another maximum-severity security flaw in n8n, a popular workflow automation platform, that allows an unauthenticated remote attacker to gain complete control over susceptible instances. The vulnerability, tracked as CVE-2026-21858 (CVSS score: 10.0), has been codenamed Ni8mare by Cyera Research Labs. Security researcher Dor Attias has been acknowledged for discovering and reporting the flaw on November 9, 2025. "A vulnerability in n8n allows an attacker to access files on the underlying server through execution of certain form-based workflows," n8n said in an advisory published today. "A vulnerable workflow could grant access to an unauthenticated remote attacker. This could result in exposure of sensitive information stored on the system and may enable further compromise depending on deployment configuration and workflow usage." With the latest development, n8n has disclosed four critical vulnerabilities over the last two weeks - However, unlike these flaws, CVE-2026-21858 does not require any credentials and takes advantage of a "Content-Type" confusion flaw to extract sensitive secrets, forge administrator access, and even execute arbitrary commands on the server. The vulnerability affects all versions of n8n prior to and including 1.65.0. It has been addressed in version 1.121.0, which was released on November 18, 2025. It's worth noting that the latest versions of the library are 1.123.10, 2.1.5, 2.2.4, and 2.3.0. According to technical details shared by Cyera with The Hacker News, the crux of the problem is rooted in the n8n webhook and file handling mechanism. Webhooks, which are crucial to receive data from apps and services when certain events occur, are triggered after the incoming request is parsed using a function named "parseRequestBody()." Specifically, the function is designed to read the "Content-Type" header in the request and invoke another function to parse the request body - The file upload parser, in turn, uses the parse() function associated with formidable, a Node.js module for parsing form data, and stores the decoded result in a global variable called "req.body.files." This populated data is processed by the webhook, which only runs when the "Content-Type" header is set to "multipart/form-data." In contrast, the regular body parser processes the incoming HTTP request body and stores the extracted data in a different global variable known as "req.body." CVE-2026-21858 occurs when a file-handling function is run without first verifying that the content-type is "multipart/form-data," potentially allowing an attacker to override req.body.files. Cyera said it found such a vulnerable flow in the function that handles form submissions ("formWebhook()"), which invokes a file-handling function ("copyBinaryFile()") to act on "req.body.files." "Here's the issue: since this function is called without verifying the content type is 'multipart/form-data,' we control the entire req.body.files object," Attias said. "That means we control the filepath parameter -- so instead of copying an uploaded file, we can copy any local file from the system." "The result? Any node after the Form node receives the local file's content instead of what the user uploaded." As for how the attack can play out, consider a website that has a chat interface to provide information about various products based on product specification files uploaded to the organizational knowledge base using a Form workflow. With this setup in place, a bad actor can leverage the security hole to read arbitrary files from the n8n instance and escalate it further to RCE by performing the following steps - "The blast radius of a compromised n8n is massive," Cyera said. "A compromised n8n instance doesn't just mean losing one system -- it means handing attackers the keys to everything. API credentials, OAuth tokens, database connections, cloud storage -- all centralized in one place. n8n becomes a single point of failure and a goldmine for threat actors." In light of the severity of the flaw, users are advised to upgrade to the patched version or later as soon as possible for optimal protection, avoid exposing n8n to the internet, and enforce authentication for all Forms. As temporary workarounds, it's advised to restrict or disable publicly accessible webhook and form endpoints.
Daily Brief Summary
A severe vulnerability in n8n, identified as CVE-2026-21858, allows unauthenticated attackers to gain full control over affected instances via form-based workflows.
This flaw, named Ni8mare, can expose sensitive information and enable further system compromise, affecting all n8n versions up to 1.65.0.
Technical analysis reveals the issue arises from a "Content-Type" confusion flaw in the webhook and file handling mechanism, potentially leading to unauthorized file access and command execution.
n8n has released a patch in version 1.121.0, addressing the vulnerability; users are strongly advised to update to this version or later.
The vulnerability represents a significant risk, potentially exposing API credentials, OAuth tokens, and database connections, making n8n a critical point of failure.
Organizations are urged to restrict internet exposure of n8n instances, enforce authentication, and consider disabling public webhook and form endpoints as interim protective measures.
This incident highlights the importance of regular updates and security assessments to safeguard against emerging threats in workflow automation platforms.