n8n symlink traversal vulnerability in "Read/Write File" node allows access to restricted files
CVE-2025-57749 · GHSA-ggjm-f3g4-rwmm · published 2025-08-20 · updated 2025-08-21
- Severity
- Medium
- CVSS score
- 6.5
- Chance of exploitation (EPSS)
- 0.52%
- Fixed in
- 1.106.0
- Exploitation No known exploitation
- Automatable No
- Technical impact Partial
- CISA SSVC
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.
Upgrade n8n to 1.106.0 or later. If you start it from an MCP config with npx or uvx, pin that version so an old cached copy is not used.
Affected users should update to version 1.106.0 or later.
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.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| n8n | npm | < 1.106.0 | 1.106.0 |
- CriticalMCP Path Traversal Allows Full-Filesystem Read and JWT Secret Exfiltration Leading to Account Takeoverlangflow, langflow-base
- Critical@zereight/mcp-gitlab: Unauthenticated arbitrary file read via `upload_markdown` enables PAT exfiltration and full account takeover@zereight/mcp-gitlab
- CriticalFlowise RCE via SQL Database Chain Nodeflowise, flowise-components
- CriticalLangroid: SQLChatAgent dangerous-function blocklist can be bypassed with quoted or schema-qualified pg_read_file callslangroid
- Criticalfast-mcp-telegram: Bearer token path traversal bypasses reserved Telegram session protectionfast-mcp-telegram
- CriticalMCP Toolbox HTTP tool path parameters allow traversal to unintended endpointsgithub.com/googleapis/mcp-toolbox
- Criticaln8n Vulnerable to Remote Code Execution via Expression Injectionn8n, n8nExploited
- Criticaln8n Has an Arbitrary File Read via Git Noden8n, n8n, n8n
- Criticaln8n: HTTP Request Node Pagination Prototype Pollution to RCEn8n, n8n, n8n
- Criticaln8n Has an XML Node Prototype Pollution Patch Bypassn8n, n8n, n8n
- Criticaln8n has XML Node Prototype Pollution that to RCEn8n, n8n, n8n
- Criticaln8n has Prototype Pollution in XML Webhook Body Parser that Leads to RCEn8n, n8n, n8n
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.