n8n symlink traversal vulnerability in "Read/Write File" node allows access to restricted files
Medium6.5CVE-2025-57749 · Published Aug 20, 2025 · updated Aug 21, 2025
### Impact A symlink traversal vulnerability was discovered in the `Read/Write File` node in n8n. While the node attempts to restrict access to sensitive directories and files, it does not properly account for symbolic links (symlinks). An attacker with the ability to create symlinks, such as by using the `Execute Command` node, could exploit this to bypass the intended directory restrictions and read from or write to otherwise inaccessible paths. Users of _n8n.cloud_ are not impacted. ### Patches Affected users should update to version 1.106.0 or later. ### Workarounds Until the patch is applied: - Disable or restrict access to the `Execute Command` node and any other nodes that allow arbitrary file system access. - Avoid using the `Read/Write File` node on untrusted paths or inputs that could be manipulated via symlinks.
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| n8n npm | < 1.106.0 | 1.106.0 |
Details and references
More n8n advisories
All n8n| Date | Advisory | Severity | Fixed in |
|---|---|---|---|
| Oct 92025 | n8n: Execute Command Node Allows Authenticated Users to Run Arbitrary Commands on Host | High8.8 | No fix yet |
| Sep 152025 | Stored XSS in n8n LangChain Chat Trigger Node via initialMessages Parameter | Medium4.1 | 1.107.0 |
| Aug 192025 | Stored XSS in n8n Form Trigger allows Account Takeover via injected iframe and video/source | High8.7 | 1.98.2 |
| Jul 32025 | n8n is vulnerable to Improper Authorization through its `/stop` endpoint | Medium4.3 | 1.99.1 |
| Jul 32025 | n8n Vulnerable to Denial of Service via Malformed Binary Data Requests | Medium4.9 | 1.99.0 |
| Jun 272025 | n8n allows open redirects via the /signin endpoint | Medium4.6 | 1.98.0 |