CVE-2026-85169
8.7n8n-io · n8n
n8n contains an expression sandbox escape in the $fromAI handler that allows authenticated users with workflow-build privileges to achieve remote code execution via prototype chain manipulation.
Executive summary
A critical sandbox escape vulnerability in n8n allows authenticated attackers to execute arbitrary code on the host system via the $fromAI handler.
Vulnerability
The vulnerability exists in the $fromAI expression handler, which fails to properly validate placeholder names. An attacker with workflow-build permissions can exploit this to walk the prototype chain, access the Function constructor, and execute arbitrary code within the main n8n process.
Business impact
A successful exploit grants an attacker the ability to execute arbitrary code on the server hosting the n8n application. This level of access typically results in full system compromise, data exfiltration, and the potential for lateral movement within the internal network. With a CVSS score of 8.7, this flaw represents a significant risk to organizational integrity, especially in environments where n8n has access to sensitive integrations or internal credentials.
Remediation
Immediate Action: Update n8n instances to version 1.123.73, 2.35.4, 2.36.2, or later to incorporate the security patch for the $fromAI handler.
Proactive Monitoring: Review workflow logs for suspicious expressions or attempts to access restricted object prototypes. Monitor system logs for unexpected process execution or unauthorized network connections originating from the n8n service account.
Compensating Controls: Restrict workflow-build privileges to trusted users only. Implement network segmentation to ensure the n8n instance operates with minimal necessary permissions to reduce the impact of a potential compromise.
Exploitation status
Public Exploit Available: No
Analyst recommendation
Given the potential for remote code execution, this vulnerability poses a severe threat to any deployment of n8n. Administrators must prioritize the application of the provided security patches across all production environments. Restricting access to workflow-building capabilities remains a critical secondary defense while the update is being staged and deployed.
More n8n-io CVEs
Sources
Originally found and disclosed by Haruna38, per the CVE Program record.
- GitHub Security Advisory (GHSA-9x83-43r8-5hwc) Vendor advisory
- VulnCheck Advisory: n8n before 1.123.73 Remote Code Execution via $fromAI Prototype Leak Third-party advisory