n8n Vulnerable to Unauthenticated File Access via Improper Webhook Request Handling
Critical10.0CVE-2026-21858 · Published Jan 7, 2026 · updated Feb 3, 2026
### Impact A vulnerability in n8n allows 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. This could result in exposure of sensitive information stored on the system and may enable further compromise depending on deployment configuration and workflow usage. ### Patches The issue has been fixed in n8n version 1.121.0. Users should upgrade to this version or later to remediate the vulnerability. ### Workarounds No official workarounds are available. As a temporary mitigation, users may restrict or disable publicly accessible webhook and form endpoints until upgrading.
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| n8n npm | >= 1.65.0, < 1.121.0 | 1.121.0 |
Details and references
- CVSS 3.1
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
- Severity from
- GitHub (reviewed advisory)
- Weakness
- CWE-20
- Also known as
- CVE-2026-21858
More n8n advisories
All n8n| Date | Advisory | Severity | Fixed in |
|---|---|---|---|
| Jan 13 | n8n: Webhook Node IP Whitelist Bypass via Partial String Matching | Medium5.3 | 2.2.0 |
| Jan 7 | n8n's Missing Stripe-Signature Verification Allows Unauthenticated Forged Webhooks | Medium6.5 | 2.2.2 |
| Jan 6 | n8n Vulnerable to RCE via Arbitrary File Write | Critical9.9 | 1.121.3 |
| Dec 262025 | Self-hosted n8n has Legacy Code node that enables arbitrary file read/write | High7.1 | 2.0.0 |
| Dec 262025 | n8n Vulnerable to Arbitrary Command Execution in Pyodide based Python Code Node | Critical9.9 | 2.0.0 |
| Dec 262025 | n8n's Possible Stored XSS in "Respond to Webhook" Node May Execute Outside iframe Sandbox | High7.3 | 1.114.0 |