<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>N8n (Npm/N8n &gt;= 2.32.0, &lt; 2.32.1) - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/n8n-npm/n8n--2.32.0--2.32.1/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Wed, 22 Jul 2026 22:15:19 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/n8n-npm/n8n--2.32.0--2.32.1/feed.xml" rel="self" type="application/rss+xml"/><item><title>n8n Edit Image Node Format Injection Allows Arbitrary File Write</title><link>https://feed.craftedsignal.io/briefs/2026-07-n8n-arbitrary-file-write/</link><pubDate>Wed, 22 Jul 2026 22:15:19 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-07-n8n-arbitrary-file-write/</guid><description>An authenticated user can exploit a format injection vulnerability in the n8n Edit Image node to write arbitrary files outside the node's working directory within the n8n instance, potentially leading to remote code execution or other significant impact.</description><content:encoded><![CDATA[<p>A high-severity format injection vulnerability, identified as GHSA-xmc9-4f2h-jf9c, exists in the n8n automation platform's Edit Image node, affecting versions prior to 1.123.67, 2.32.0 up to 2.32.1, and 2.0.0-rc.0 up to 2.31.5. This vulnerability allows an authenticated user, with the ability to create or execute workflows, to achieve arbitrary file write on the n8n instance. The flaw stems from the Edit Image node passing user-controlled output format parameters directly to the underlying image processing library without proper validation, enabling directory traversal and placement of malicious files in sensitive locations. Successful exploitation can lead to system compromise, including remote code execution or persistence within the n8n environment. Defenders should prioritize patching to the remediated versions immediately.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An authenticated attacker, with privileges to create or modify n8n workflows, logs into the vulnerable n8n instance.</li>
<li>The attacker creates a new workflow or modifies an existing one to incorporate the &quot;Edit Image&quot; node.</li>
<li>Within the &quot;Edit Image&quot; node's configuration, the attacker crafts a malicious value for the &quot;Format&quot; parameter, embedding directory traversal sequences (e.g., <code>../../</code>) and a controlled file name (e.g., <code>../../path/to/webshell.php</code>).</li>
<li>When the workflow is executed, the n8n application passes the unvalidated, maliciously crafted format string directly to the underlying image processing library.</li>
<li>The image processing library, acting on the attacker-supplied path, writes the image output data to an arbitrary location on the server's filesystem, escaping the intended working directory.</li>
<li>The attacker leverages this arbitrary file write to place a malicious file, such as a web shell, a modified application configuration file, or a backdoor script, into a sensitive directory accessible by the n8n application or web server.</li>
<li>By subsequently interacting with the written malicious file (e.g., sending an HTTP request to a web shell) or by triggering n8n to load the modified configuration, the attacker achieves remote code execution.</li>
<li>This exploitation grants the attacker persistent access or full control over the compromised n8n instance and potentially the underlying server.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>The successful exploitation of this vulnerability by an authenticated user leads to arbitrary file write capabilities on the n8n instance. This means an attacker can place any file type, including web shells, modified configuration files, or other malicious executables, into sensitive directories on the server. The direct consequence is potential remote code execution, allowing the attacker to fully compromise the n8n application system and gain control over the underlying server. While no specific victim counts are provided, all n8n instances running vulnerable versions are at risk from any authenticated user, regardless of their intended privilege level.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Upgrade n8n instances immediately to patched versions 1.123.67, 2.31.5, or 2.32.1 or later to remediate the vulnerability.</li>
<li>If immediate upgrade is not feasible, restrict n8n instance access to fully trusted users only as a temporary measure.</li>
<li>As a short-term mitigation, disable the Edit Image node by adding <code>n8n-nodes-base.editImage</code> to the <code>NODES_EXCLUDE</code> environment variable.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>arbitrary-file-write</category><category>vulnerability</category><category>rce</category><category>n8n</category></item></channel></rss>