CVE-2025-57749: n8n symlink traversal vulnerability in "Read/Write File" node allows access to restricted files
n8n before 1.106.0 checks the Read/Write File node's paths with a function that does not follow symlinks. A workflow author who can create a symlink, for example with the Execute Command node, can read or write files in directories the node is meant to block. n8n.cloud is not affected. Fixed in 1.106.0.
Published Aug 20, 2025 · Updated Aug 21, 2025 · Analysis Nov 1, 2026
What an attacker can do
The Read/Write File node compares the requested path with a list of blocked locations. The check used Node's resolve, which only normalizes the string and does not look at the file system. A symlink placed in an allowed folder, pointing at a blocked location, passes the check, and the node then reads or writes through the link.
The attacker needs a way to create the symlink. The advisory names the Execute Command node, so the person needs rights to build and run workflows with it. Low privileges are enough (CVSS PR:L). From there, the attacker can read files such as credentials, keys and config the n8n process can open, and write into protected paths. The CVSS vector scores only confidentiality impact. Instances where many people can edit workflows, or where workflows take outside input, are most at risk.
Who is affected
Self-hosted n8n before 1.106.0. Users of n8n.cloud are not impacted. Check the version:
npm ls -g n8nFor Docker, check the image tag, or find the version in the n8n UI under Help, About. The risk is real where workflows use the Execute Command node or other nodes with arbitrary file system access.
n8n
- Ecosystem
- npm
- Affected
- < 1.106.0
- Fixed in
- 1.106.0
- Check
npm ls n8n
How to fix it
Update to n8n 1.106.0 or later:
npm install -g [email protected]PR #17735 switches the blocked-path check to realpath, so a symlink pointing at a blocked path is detected. The change is in file-system-helper-functions.ts. Workarounds from the advisory until you patch: disable or restrict the Execute Command node and any other node with arbitrary file system access, and avoid using Read/Write File on untrusted paths or inputs that could be changed through symlinks.
How to tell if you were hit
Check the file system for symlinks that point outside the intended folders, especially in directories the n8n user can write to. List workflows that contain both an Execute Command node (for example running ln -s) and a Read/Write File node, and review their execution history. Look at execution logs for file reads of sensitive paths. The advisory publishes no log lines.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
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 Commandnode and any other nodes that allow arbitrary file system access. - Avoid using the
Read/Write Filenode on untrusted paths or inputs that could be manipulated via symlinks.
Credited to Mahmoud0x00.
Questions
- Does n8n.cloud need action?
No. The advisory states users of n8n.cloud are not impacted. The advice to update applies to self-hosted installs.
- How does an attacker create the symlink?
The advisory gives the Execute Command node as an example. Any node or access that creates symlinks on the n8n host works.
- Which version fixes CVE-2025-57749?
n8n 1.106.0. The fix switches the blocked-path check from
resolvetorealpath.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More n8n vulnerabilities
All n8n entriesCVE-2026-86073
n8n: Per-Resource OAuth Consent Bypass via Unbound Refresh Token Resource Substitution
medium5.9Sep 10, 2026CVE-2026-86074
n8n: Instance AI Credential Setup Accepts Unvalidated Probe URL from Fetched Content
medium5.9Sep 10, 2026CVE-2026-86075
n8n: Unauthenticated Persistent Storage Exhaustion via OAuth Dynamic Client Registration Endpoint
high8.7Sep 10, 2026CVE-2026-86076
n8n: Expression Sandbox Escape via Class-Field Sanitizer Rebinding Can Lead to Code Execution
high8.7Sep 10, 2026CVE-2026-86077
n8n: Anonymous Approval-Gate Bypass via Reused resumeToken over the Chat WebSocket
medium6.3Sep 10, 2026CVE-2026-86078
n8n: Prototype Pollution via Workflow Structure Summary Can Lead to Denial of Service
medium6.0Sep 10, 2026
