CVE-2025-68697 Details
Description
n8n is an open source workflow automation platform. Prior to version 2.0.0, in self-hosted n8n instances where the Code node runs in legacy (non-task-runner) JavaScript execution mode, authenticated users with workflow editing access can invoke internal helper functions from within the Code node. This allows a workflow editor to perform actions on the n8n host with the same privileges as the n8n process, including: reading files from the host filesystem (subject to any file-access restrictions configured on the instance and OS/container permissions), and writing files to the host filesystem (subject to the same restrictions). This issue has been patched in version 2.0.0. Workarounds for this issue involve limiting file operations by setting N8N_RESTRICT_FILE_ACCESS_TO to a dedicated directory (e.g., ~/.n8n-files) and ensure it contains no sensitive data, keeping N8N_BLOCK_FILE_ACCESS_TO_N8N_FILES=true (default) to block access to .n8n and user-defined config files, and disabling high-risk nodes (including the Code node) using NODES_EXCLUDE if workflow editors are not fully trusted.
A vulnerability exists in self-hosted n8n instances prior to version 2.0.0, where the Code node operates in legacy JavaScript execution mode. Authenticated users with workflow editing rights can access internal helper functions within the Code node. This capability allows them to perform file read and write operations on the host filesystem, depending on the instance's file-access settings and the operating system or container permissions. Although n8n versions 1.2.1 and above block access to the n8n home directory by default, this restriction does not apply to other filesystem areas unless additional limitations are set.
Users can upgrade to n8n version 2.0.0 or later, where task runners are enabled by default for Code node execution. For n8n versions 1.71.0 and above, task runners can be activated by setting 'N8N_RUNNERS_ENABLED=true'. If an immediate upgrade is not possible, file operations can be restricted by setting 'N8N_RESTRICT_FILE_ACCESS_TO' to a dedicated directory that does not contain sensitive data, keeping 'N8N_BLOCK_FILE_ACCESS_TO_N8N_FILES=true' to prevent access to the n8n home directory and user-defined config files, and disabling high-risk nodes like the Code node using 'NODES_EXCLUDE' if workflow editors are not fully trusted.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Dec 26, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/n8n-io/n8n/security/advisories/GHSA-j4p8-h8mh-rh8q | [email protected] | PatchVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| NVD-CWE-noinfo | Insufficient Information to Classify Weakness | [email protected] |
| CWE-269 | Improper Privilege Management | [email protected] |
| CWE-749 | Exposed Dangerous Method or Function | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| n8n n8n | < 2.0.0 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Dec 31, 2025 | Initial Analysis | [email protected] |
| Dec 26, 2025 | New CVE Received | [email protected] |