Skip to main content
Mallory
← Back to News
internet-facing-service-vulnerabilityidentity-authentication-vulnerabilityinternet-exposed-servicewidely-deployed-product-advisory

Critical Unauthenticated RCE in n8n Enables Full Instance Takeover

Vulnerability Disclosure · 2 sources · Updated 2mo ago · First seen Jan 6, 2026

Critical Unauthenticated RCE in n8n Enables Full Instance Takeover

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.

Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

4 events · Nov 9, 2025 – Jan 6, 2026
  1. Jan 6, 202611mo ago

    CVE-2026-21858 assigned to n8n vulnerability

    n8n assigned CVE-2026-21858 to the critical Content-Type confusion flaw, which can enable arbitrary local-file reads, authentication bypass, and code execution on locally deployed instances.

    Ni8mare - Unauthenticated Remote Code Execution in n8n (CVE-2026-21858) | Cyera Research Labs
  2. Nov 18, 20251y ago

    n8n publishes patched version

    n8n published a patched version addressing the reported unauthenticated file-access vulnerability.

    Ni8mare - Unauthenticated Remote Code Execution in n8n (CVE-2026-21858) | Cyera Research Labs
  3. Nov 10, 20251y ago

    n8n acknowledges vulnerability report

    n8n acknowledged receipt of Cyera Research Labs' vulnerability report.

    Ni8mare - Unauthenticated Remote Code Execution in n8n (CVE-2026-21858) | Cyera Research Labs
  4. Nov 9, 20251y ago

    Cyera reports n8n vulnerability to vendor

    Cyera Research Labs reported the critical n8n file-access vulnerability to n8n through responsible disclosure.

    Ni8mare - Unauthenticated Remote Code Execution in n8n (CVE-2026-21858) | Cyera Research Labs
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Vulnerabilities

1 linked

Affected products

1 linked
N8n
Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.