Documented Incident · INC-2026-21858 · Critical severity
n8n Ni8mare Unauthenticated Form Trigger File Read Chained to RCE
CVE-2026-21858 (dubbed Ni8mare) revealed an unauthenticated arbitrary file read vulnerability in n8n's Form Trigger node caused by missing validation on multipart content-type requests. Remote attackers hitting public workflow form endpoints could read local host configuration files, extract master encryption keys, forge valid admin session cookies, and chain into full remote code execution. Given n8n's widespread deployment in AI agent automation pipelines, national cyber agencies issued urgent remediation notices. Maintainers patched request parsing and urged rotation of instance encryption keys.
Incident dossier metadata
- Case ID
INC-2026-21858- Classification
- Incident
- Date
- Severity
- Critical
- Sector
- Cloud & AI Infrastructure
- Attack vector
- Data Exfiltration
- System type
- AI Workflow Automation Platforms
- CVE / reference
CVE-2026-21858- Reference URI
https://nvd.nist.gov/vuln/detail/CVE-2026-21858
Defensive takeaway
Separate public webhook ingress from privileged automation cores, enforce strict multipart body handling, and rotate workflow encryption keys after exposure.
Mapped AI security techniques
- Exploit Public-Facing Application AML.T0049
- Unsecured Credentials AML.T0055
- Use Alternate Authentication Material: Web Session Cookie AML.T0091.001
- Steal Web Session Cookie AML.T0113
- Exploitation of Remote Services AML.T0122
Mapped defensive controls
- Control Access to AI Models and Data at Rest AML.M0005
- Encrypt Sensitive Information AML.M0012
- Vulnerability Scanning AML.M0016
- Control Access to AI Models and Data in Production AML.M0019
Source citation records
- NVD Record CVE-2026-21858: n8n Ni8mare Arbitrary File Read & Compromise · NIST National Vulnerability Database (NVD) ·