Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to n8n instance with workflow execution rights
-
DeliveryCreate or modify workflow containing Edit Image node
-
ExploitInject crafted format parameter with path traversal or library directive
-
ExecutionExecute workflow to trigger file write operation
-
PersistWrite arbitrary bytes to target filesystem path
-
ImpactLeverage written file for persistence or privilege escalation
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V5 - File Handling File type validation, storage isolation
MITRE ATT&CK
2 techniques across 2 tactics: Command and Control, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the attacker to hold an active n8n account with the ability to create or trigger workflow executions - this is a PR:L (low privilege) requirement, not unauthenticated. The Edit Image node must be available and not excluded via NODES_EXCLUDE; excluding n8n-nodes-base.editImage via that environment variable fully blocks this specific attack path. The CVSS 4.0 metrics AC:H and AT:P indicate that additional attack conditions must be present beyond network access, but the advisory does not enumerate these explicitly - this is a gap in the available intelligence. The file write's reachable impact is bounded by the operating system permissions of the n8n process user; if n8n runs as a non-privileged user, writable paths are constrained to that user's accessible filesystem. No user interaction from a victim is required beyond the attacker's own workflow execution. The vulnerability does not require a specific n8n configuration beyond the default installation with the Edit Image node enabled. |
| Impact | The CVSS 4.0 score of 7.7 with vector AV:N/AC:H/AT:P/PR:L reflects a real but access-gated threat: exploitation requires authenticated workflow execution rights, elevated attack complexity, and the presence of additional preconditions (AT:P), suggesting this is not trivially mass-exploitable. EPSS data was not provided, and this CVE is not listed in the CISA KEV catalog, both of which temper urgency compared to fully unauthenticated or KEV-listed flaws. That said, the high vulnerable-system impact ratings (VC:H/VI:H/VA:H) correctly capture the worst-case outcome - a workflow user who can craft a malicious Edit Image node invocation may overwrite SSH authorized_keys, cron jobs, or application configuration files, ultimately achieving persistence or privilege escalation on the host. In practice, even a mid-sized development team in sopot operating a self-hosted n8n instance for internal ETL pipelines should treat this as an urgent patch because n8n deployments routinely grant workflow execution rights to multiple developers, and the barrier from 'workflow user' to 'arbitrary file write' is a single crafted node invocation. The key limiting factor is PR:L: organizations that restrict n8n access to fully trusted operators and rotate credentials tightly face substantially reduced real-world risk. The AC:H and AT:P ratings suggest the exploit path requires specific knowledge of the image library's format handling and possibly specific deployment conditions - precise details of these preconditions are not fully enumerated in the advisory, which is a gap. SSVC signals: exploitation status is 'none' (no public exploit), automatable assessment is uncertain pending technical detail, and technical impact is 'total' on the vulnerable component. |
| Exploit ScenarioDerived | An authenticated n8n user with workflow execution rights creates or modifies a workflow containing an Edit Image node and sets the output format parameter to a crafted value that the underlying image library interprets as a path directive, redirecting the file write to a sensitive location such as the n8n host's SSH authorized_keys file or a cron directory. Upon executing the workflow, the image library writes attacker-controlled bytes to the target path without n8n intercepting or restricting the operation. No public exploit code has been identified at time of analysis, but the fix commit is public, making independent exploit derivation feasible for a motivated researcher. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 11, 2026
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.
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.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
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.
Know when N8n gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
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
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
2DescriptionCVE.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.
Executive ViewAI
n8n versions before 1.123.67 (1.x), 2.31.5 (2.x), and 2.32.1 (2.32.x) contain an arbitrary file-write vulnerability in the Edit Image node that allows workflow operators to access and modify files outside their intended working directory. This impacts any organization using n8n where multiple users design workflows, potentially exposing sensitive files or enabling system compromise.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Malicious file upload attacks exploit insufficient validation when web applications accept user-provided files.
Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation
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
Authenticated users who can create or modify an n8n workflow can achieve remote code execution on the n8n host by abusin
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
EUVD-2026-56141
GHSA-rwvr-8f8w-f6hc
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB