CVE-2023-27562: n8n Directory Traversal vulnerability
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 --versionFor 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
Read for this analysis:
- https://github.com/n8n-io/n8n/pull/5522
- https://github.com/n8n-io/n8n/pull/5523
- https://github.com/advisories/GHSA-p58x-7733-vp9m
- https://nvd.nist.gov/vuln/detail/CVE-2023-27562
- https://www.synacktiv.com/sites/default/files/2023-05/Synacktiv-N8N-Multiple-Vulnerabilities_0.pdf
- https://github.com/n8n-io/n8n/releases/tag/n8n%400.216.1
- https://security.netapp.com/advisory/ntap-20230622-0007/
- https://github.com/n8n-io/n8n/commit/40b97846483fe7c58229c156acb66f43a5a79dc3
- https://github.com/n8n-io/n8n/commit/fb07d77106bb4933758c63bbfb87f591bf4a27dd
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
