<?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 (All Versions Prior to 2.29.8) - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/n8n-all-versions-prior-to-2.29.8/</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 18:05:27 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/n8n-all-versions-prior-to-2.29.8/feed.xml" rel="self" type="application/rss+xml"/><item><title>n8n AI Agents Privilege Escalation via run_node_tool</title><link>https://feed.craftedsignal.io/briefs/2026-07-n8n-ai-agents-privilege-escalation/</link><pubDate>Wed, 22 Jul 2026 18:05:27 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-07-n8n-ai-agents-privilege-escalation/</guid><description>A privilege escalation vulnerability (CVE-2026-65015) exists in n8n's AI Agents feature, allowing users with the read-only Project Viewer role to execute arbitrary tool nodes and access unauthorized credential secrets, potentially leading to arbitrary command execution on the n8n host.</description><content:encoded><![CDATA[<p>A high-severity privilege escalation vulnerability, tracked as CVE-2026-65015, has been identified in n8n's AI Agents feature. This flaw allows an authenticated user with a read-only Project Viewer role to bypass intended access controls and execute arbitrary tool nodes, thereby gaining access to credential secrets they are not authorized to view. The vulnerability stems from the <code>node-execution</code> tool within the AI Agent, which fails to properly verify user permissions when executing nodes or accessing project credentials, relying only on the broad <code>agent:execute</code> scope. This issue impacts organizations using the AI Agents feature and sharing team projects with lower-privileged members, significantly increasing the risk of unauthorized data access and, in configurations with command-capable nodes, potential arbitrary command execution on the underlying n8n host system. Patches have been released in versions 2.29.8 and 2.30.1.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker, authenticated as a Project Viewer, gains access to an n8n team project that has an AI Agent configured with 'node tools' enabled.</li>
<li>The attacker interacts with the AI Agent through the chat interface, crafting an input that specifically triggers the <code>run_node_tool</code> function.</li>
<li>The AI Agent's <code>node-execution</code> tool receives the request to execute a node, initiated by the Project Viewer.</li>
<li>The <code>node-execution</code> tool proceeds to execute the requested node using the project's configured credentials.</li>
<li>Crucially, the <code>node-execution</code> tool's authorization mechanism relies solely on the <code>agent:execute</code> scope and fails to verify that the requesting Project Viewer has the necessary permissions to execute nodes or access the specific credentials involved.</li>
<li>This bypass allows the Project Viewer to execute arbitrary tool nodes beyond their assigned read-only privileges, effectively escalating their capabilities within the n8n environment.</li>
<li>The Project Viewer can now access and utilize sensitive credential secrets stored within the project, which they were previously unauthorized to read, facilitating further internal reconnaissance or lateral movement.</li>
<li>If the n8n instance has command- or file-capable tool nodes (such as 'Execute Command' or 'SSH') enabled, the Project Viewer can leverage this escalated privilege to achieve arbitrary command execution on the n8n host system, leading to full system compromise.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>The vulnerability (CVE-2026-65015) in n8n's AI Agents feature allows a read-only Project Viewer to escalate their privileges within the n8n environment. This leads to unauthorized execution of arbitrary tool nodes and access to sensitive credential secrets, enabling the attacker to perform actions explicitly denied by their role. For instances where command- or file-capable tool nodes (e.g., 'Execute Command', 'SSH') are enabled, this privilege escalation can be leveraged for arbitrary command execution on the n8n host. This directly impacts organizations using n8n with AI Agents and team projects, risking data exfiltration, system compromise, and unauthorized manipulation of workflows by lower-privileged users. All users of the AI Agents feature who share team projects are potentially affected.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Upgrade n8n instances immediately to version 2.29.8 or 2.30.1, or later, to remediate CVE-2026-65015.</li>
<li>If immediate upgrade is not possible, consider disabling the AI Agents module by removing <code>agents</code> from the <code>N8N_ENABLED_MODULES</code> environment variable as a temporary mitigation for CVE-2026-65015.</li>
<li>Restrict project membership to fully trusted users only and avoid granting Project Viewer access to untrusted users on projects containing agents with node tools enabled.</li>
<li>Disable command-execution nodes (e.g., <code>Execute Command</code>, <code>SSH</code>) within n8n workflows if they have been re-enabled, to limit the potential impact of arbitrary command execution from successful exploitation.</li>
<li>Deploy the Sigma rule in this brief to your SIEM to detect suspicious process creation activities that may indicate successful arbitrary command execution on Linux hosts.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>n8n</category><category>privilege-escalation</category><category>vulnerability</category><category>ai-agents</category><category>web-application</category></item></channel></rss>