AgentbeamBeta
AI agent vulnerability · n8n

CVE-2023-27562: n8n Directory Traversal vulnerability

mediumCVSS 3.1 6.5GHSA-p58x-7733-vp9m

n8n before 0.216.1 has directory traversal flaws in its core. Two fixes mention the credential-translation endpoint and `BinaryDataManager`, which accepted paths that could escape their intended location. Upgrade to n8n 0.216.1. The sources do not describe the exact payload or what files can be reached.

Published May 10, 2023 · Updated Nov 27, 2023 · Analysis Nov 11, 2026

What an attacker can do

The advisory itself is one line: n8n before 0.216.1 for Node.js allows directory traversal. The linked fixes name two places. One pull request is titled "Do not allow arbitrary path traversal in the credential-translation endpoint", and the other "Do not allow arbitrary path traversal in BinaryDataManager". In both cases a user-supplied path was used to reach files without being confined to the intended directory.

The pull request pages do not show the diffs or the validation added, and the Synacktiv research PDF in the references was not read. So these sources do not state which files an attacker can read or write, or whether authentication is required. The CVSS rating is medium. A traversal bug of this class normally lets an attacker read files on the n8n host that the n8n process can read, which in n8n's case can include its configuration, the encryption key file and local data. Treat any instance on 0.216.0 or earlier that is reachable by untrusted users as at risk of file disclosure until patched.

Who is affected

n8n on npm before 0.216.1, which includes every 0.216.0 and older release, whether self-hosted from npm or run as a container image. Check:

npm ls -g n8n
n8n --version

For Docker, check the image tag you run.

n8n

Ecosystem
npm
Affected
< 0.216.1
Fixed in
0.216.1
Check
npm ls n8n

How to fix it

Upgrade to n8n 0.216.1:

npm install -g [email protected]

The fixes are in pull requests 5522 (credential-translation endpoint) and 5523 (BinaryDataManager), released in n8n 0.216.1. The sources list no workaround. Until you upgrade, restrict who can reach the instance and do not expose it to the internet.

How to tell if you were hit

Look in reverse proxy and n8n logs for requests containing .., %2e%2e or absolute paths, especially to the credential translation routes and binary data routes. Check for reads of files outside n8n's data directory by the n8n process, and rotate the n8n encryption key and stored credentials if you suspect disclosure.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

The n8n package prior to version 0.216.1 for Node.js allows Directory Traversal.

Credited to MarkLee131.

Questions

Which n8n version fixes CVE-2023-27562?

0.216.1. Everything before it is affected.

What exactly was fixed?

Path traversal in the credential-translation endpoint and in BinaryDataManager, per the titles of the two pull requests.

Is the exact attack documented?

The sources I could read do not give the payload. The Synacktiv research PDF linked from the advisory may.

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 entries