Incident report
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 record
- Reported
- Severity
- Critical
- Vector
- Data Exfiltration
- Affected system type
- AI Workflow Automation Platforms
- Reference
CVE-2026-21858- Reference URI
https://nvd.nist.gov/vuln/detail/CVE-2026-21858
Defensive lesson
Separate public webhook ingress from privileged automation cores, enforce strict multipart body handling, and rotate workflow encryption keys after exposure.
Referenced 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