CVE-2023-27562 n8n Directory Traversal vulnerability
An attacker can exploit a directory traversal vulnerability in the n8n Node.js package to read arbitrary files from the server.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-27562?
CVE-2023-27562 is a medium-severity path traversal vulnerability in N8n N8n, published on 10 May 2023. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
The n8n package 0.218.0 for Node.js allows Directory Traversal.
Weakness: CWE-22
Which versions are affected by CVE-2023-27562?
2 open source packages ship an affected version, including n8n. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
n8n npm | All versions | 0.216.1 |
n8n npm | All versions | 0.216.1 |
Products include N8n N8n.
How do I fix CVE-2023-27562?
Upgrade n8n to 0.216.1 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2023-27562 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-27562 exists.
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-21858 n8n Vulnerable to Unauthenticated File Access via Improper Webhook Request Handling
- 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
Sources
Also known as GHSA-p58x-7733-vp9m.