High · published December 27, 2025
⚡ If you're using n8n before version 2.0.0, authenticated users can wield epic powers with just a few edits! This sneaky vulnerability lets them invoke internal functions, opening access to your system files. 🔥 Think of it like a restaurant where chefs can not only cook but also access the storage room, picking any ingredients they want without oversight. If a chef goes rogue, they could grab everything from the pantry, including your secret recipes! 🍽️ This vulnerability allows a workflow editor to perform actions on the n8n host with the same privileges as the n8n process. Imagine someone being able to read and even write files on your server, putting your sensitive data at risk and potentially leading to a data breach or system compromise. That's absolutely devastating! 😱
Think of it like a restaurant where chefs can not only cook but also access the storage room, picking any ingredients they want without oversight. If a chef goes rogue, they could grab everything from the pantry, including your secret recipes! 🍽️ In self-hosted n8n instances running in legacy JavaScript execution mode, authenticated users with workflow editing access can exploit the Code node to invoke internal functions, thus gaining access to host filesystem operations. They can read and write files without sufficient restrictions in place.
This vulnerability allows a workflow editor to perform actions on the n8n host with the same privileges as the n8n process. Imagine someone being able to read and even write files on your server, putting your sensitive data at risk and potentially leading to a data breach or system compromise. That's absolutely devastating! 😱 Upgrade to n8n version 2.0.0 immediately to close this loophole. Also, consider limiting file operations by setting N8N_RESTRICT_FILE_ACCESS_TO to a dedicated directory and ensure it contains no sensitive data. Don't forget to keep N8N_BLOCK_FILE_ACCESS_TO_N8N_FILES=true to block access to sensitive configuration files and disable high-risk nodes if you can't fully trust your workflow editors! 🛡️ You've got this! Follow these steps, and you'll secure your n8n instance in no time! 🚀
| Product | Versions | Fixed in |
|---|---|---|
| n8n/n8n | < 2.0.0 | 2.0.0 |