Browse / AI Framework and Platform Flaws / CVE-2025-57749
n8n symlink traversal vulnerability in "Read/Write File" node allows access to restricted files
- Class
- AI Framework and Platform Flaws (filed by a model that read the source)
- Technique
- Path traversal and file access
- Affected
- n8n (npm)
- Gets past
- Path restriction
- CVSS
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- EPSS
- 0.5% chance of exploitation in 30 days
How it works, in short
A user who can create symlinks, for example through a command node, can point the file node past its directory restrictions to read or write protected paths. (Our summary, written by a model. The source text is below.)
Details
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.
References
- https://github.com/n8n-io/n8n/security/advisories/GHSA-ggjm-f3g4-rwmm
- https://nvd.nist.gov/vuln/detail/CVE-2025-57749
- https://github.com/n8n-io/n8n/pull/17735
- https://github.com/n8n-io/n8n/commit/c2c3e08cdf33570d9051e659812cbfbdd3c077fd
- https://github.com/n8n-io/n8n
Source: GitHub Advisory Database, used under CC BY 4.0.