VDB
Sign up
MEDIUM6.5

GHSA-ggjm-f3g4-rwmm

n8n symlink traversal vulnerability in "Read/Write File" node allows access to restricted files

Quick fix

GHSA-ggjm-f3g4-rwmm — n8n: upgrade to the fixed version with the command below.

npm install n8n@1.106.0

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 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.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/n8n
Introduced in: 0Fixed in: 1.106.0
Fixnpm install n8n@1.106.0

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:npm/n8n"]}'