CVE-2026-21858 n8n Vulnerable to Unauthenticated File Access via Improper Webhook Request Handling
Unauthenticated attackers can access server files via vulnerable form-based workflows in n8n, exposing sensitive information.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-21858?
CVE-2026-21858 is a critical path traversal vulnerability in N8n N8n, published on 7 Jan 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
n8n is an open source workflow automation platform. Versions starting with 1.65.0 and below 1.121.0 enable an attacker to access files on the underlying server through execution of certain form-based workflows. A vulnerable workflow could grant access to an unauthenticated remote attacker, resulting in exposure of sensitive information stored on the system and may enable further compromise depending on deployment configuration and workflow usage. This issue is fixed in version 1.121.0.
Weakness: CWE-20
Which versions are affected by CVE-2026-21858?
2 open source packages ship an affected version, including n8n. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
n8n npm | From 1.65.0 | 1.121.0 |
n8n npm | From 1.65.0 | 1.121.0 |
Products include N8n N8n.
How do I fix CVE-2026-21858?
Upgrade n8n to 1.121.0 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2026-21858 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-21858 exists.
Public exploit code: 1 Nuclei template and 17 proofs of concept on GitHub.
Other vulnerabilities in N8n N8n
- CVE-2025-68613 n8n Improper Control of Dynamically-Managed Code Resources
- CVE-2026-21877 n8n is vulnerable to Remote Code Execution via Arbitrary File Write
- CVE-2026-1470 n8n Unsafe Workflow Expression Evaluation Allows Remote Code Execution
- CVE-2025-68668 n8n Vulnerable to Arbitrary Command Execution in Pyodide based Python Code Node
- CVE-2026-27493 n8n has Unauthenticated Expression Evaluation via Form Node
Sources
Also known as GHSA-v4pr-fm98-w9pg.