Severity by source
CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Network vector, low privilege required; scope change reflects writes escaping working directory to host paths; AC:H per CVSS 4.0 source and unspecified preconditions.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
4DescriptionCVE.org
n8n versions before 1.123.67, 2.31.5, and 2.32.1 contain an arbitrary file write vulnerability in the Edit Image node, which passes its output format parameter to the underlying image library without validation. An authenticated user able to run workflows can supply a crafted format value to write arbitrary files outside the node's working directory on the n8n instance.
AnalysisAI
Arbitrary file write in n8n's Edit Image node allows authenticated workflow users to escape the node's designated working directory by injecting unsanitized format parameter values into the underlying image library. All n8n releases before 1.123.67 on the 1.x line, before 2.31.5 on the 2.x line, and before 2.32.1 on the 2.32.x line are affected, as confirmed by the GHSA-xmc9-4f2h-jf9c advisory from the n8n maintainers. No public exploit code has been identified at time of analysis, but patched versions and a remediation commit are available, and no special attacker position beyond workflow execution privileges is required.
Technical ContextAI
n8n is a Node.js-based workflow automation platform distributed via npm under the package name n8n (vendor n8n-io). The Edit Image node provides image manipulation capabilities and internally delegates processing to an underlying image library - likely Sharp, GraphicsMagick, or a similar native binding. The library accepts a format string to determine the output encoding and file destination, and n8n forwarded the caller-supplied format value to this library without sanitization or path restriction. This maps to CWE-434 (Unrestricted Upload of File with Dangerous Type), where the application trusts user-controlled input to determine the file type or write location without validation. By supplying a crafted format value - for example, one containing path traversal sequences or a library-specific directive that encodes an absolute path - an attacker can redirect the image library's file write operation to an arbitrary location accessible under n8n's process credentials. The CPE string cpe:2.3:a:n8n-io:n8n:* confirms the vulnerability covers the n8n application across all editions without platform restriction.
RemediationAI
The primary fix is to upgrade n8n to one of the three patched releases: 1.123.67 (1.x series), 2.31.5 (2.x series), or 2.32.1 (2.32.x series), all confirmed by the GHSA-xmc9-4f2h-jf9c advisory and the upstream patch commit at https://github.com/n8n-io/n8n/commit/f69dfc6dd2178a14ea1624d2e1d403c2e755042f. For operators unable to upgrade immediately, the vendor recommends two short-term mitigations, both of which carry trade-offs: first, restrict n8n instance access to fully trusted users only - this reduces exposure but does not eliminate the vulnerability if any authenticated user is considered a threat actor; second, disable the Edit Image node entirely by adding n8n-nodes-base.editImage to the NODES_EXCLUDE environment variable - this prevents exploitation of this specific vector but removes image editing capability from all workflows. The advisory explicitly states these workarounds do not fully remediate the risk and are intended only as temporary measures pending upgrade. Refer to the full advisory at https://github.com/n8n-io/n8n/security/advisories/GHSA-xmc9-4f2h-jf9c for the latest guidance.
n8n workflow automation (through 1.121.2) allows authenticated users to execute arbitrary code via the n8n service, with
n8n workflow automation (1.65.0 to 1.121.0) allows unauthenticated file access through form-based workflows. A critical
n8n has a fifth critical RCE vulnerability (CVSS 9.9) in the Expression evaluator, enabling code execution through craft
A prototype pollution vulnerability in the XML and GSuiteAdmin nodes of n8n workflow automation platform allows authenti
An authenticated user with workflow creation or modification privileges in n8n workflow automation platform can exploit
n8n-workflows Main Commit ee25413 allows attackers to execute a directory traversal via the download_workflow function w
Authenticated n8n users can hijack administrator accounts when LDAP authentication is enabled by manipulating their LDAP
The n8n package 0.218.0 for Node.js allows Escalation of Privileges. Rated high severity (CVSS 8.8), this vulnerability
SQL injection in n8n's Data Table Get node allows authenticated users with workflow modification permissions to execute
Authenticated users can exploit string formatting and exception handling in n8n's Python task executor to escape sandbox
n8n workflow automation platform Community Edition contains an authorization bypass vulnerability allowing authenticated
The n8n package 0.218.0 for Node.js allows Information Disclosure. Rated high severity (CVSS 7.5), this vulnerability is
Same technique File Upload
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-56141
GHSA-rwvr-8f8w-f6hc