Description
n8n versions before 1.123.73, 2.35.4, and 2.36.2 contain an expression sandbox escape in the $fromAI handler. $fromAI resolved a caller-supplied placeholder name without requiring it to be an own property and admitted reserved keys; against a primitive input value it returned a live host-prototype reference. An attacker with workflow-build privilege can walk the prototype chain to the Function constructor and compile/execute arbitrary code in the main n8n process, leading to remote code execution.
Published: 2026-09-03
Score: 8.7 High
EPSS: < 1% Very Low
KEV: No
Impact: Remote Code Execution
Action: Immediate Patch
AI Analysis

Impact

The $fromAI handler in n8n’s expression sandbox resolves user‑supplied placeholder names without confirming they are own properties or checking against reserved keys. When supplied with a primitive value, this logic returns a live host‑prototype reference, allowing an attacker to navigate the prototype chain. From the Function constructor reachable via the prototype chain the attacker can compile and execute arbitrary code within the main n8n process, resulting in full remote code execution.

Affected Systems

This flaw affects the n8n workflow automation tool distributed by n8n‑io. Versions prior to 1.123.73, 2.35.4, and 2.36.2 are vulnerable. Any instance of the software that has not yet been updated to a patched release is at risk, particularly if users can create or edit workflows.

Risk and Exploitability

The vulnerability carries a CVSS score of 8.7, indicating high severity. EPSS data is not available and the flaw is not currently listed in the CISA KEV catalog. Exploitation requires the ability to build or modify workflows; an attacker with workflow‑build privilege can inject malicious expressions and gain code execution rights within the n8n process. Although the attack vector is internal to the workflow execution environment, a compromised n8n instance could provide a foothold for further lateral or remote attacks.

Generated by OpenCVE AI on September 3, 2026 at 13:00 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade n8n to version 1.123.73 or later to apply the vendor patch.
  • If an upgrade cannot be performed immediately, remove or disable the $fromAI handler from all workflows to block prototype‑based code injection.
  • Limit workflow‑build permissions to trusted personnel and monitor for unauthorized workflow creation.

Generated by OpenCVE AI on September 3, 2026 at 13:00 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 18 Sep 2026 15:00:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:n8n:n8n:*:*:*:*:*:node.js:*:*
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}


Sat, 05 Sep 2026 08:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 03 Sep 2026 11:30:00 +0000

Type Values Removed Values Added
Description n8n versions before 1.123.73, 2.35.4, and 2.36.2 contain an expression sandbox escape in the $fromAI handler. $fromAI resolved a caller-supplied placeholder name without requiring it to be an own property and admitted reserved keys; against a primitive input value it returned a live host-prototype reference. An attacker with workflow-build privilege can walk the prototype chain to the Function constructor and compile/execute arbitrary code in the main n8n process, leading to remote code execution.
Title n8n before 1.123.73 Remote Code Execution via $fromAI Prototype Leak
First Time appeared N8n
N8n n8n
Weaknesses CWE-94
CPEs cpe:2.3:a:n8n:n8n:*:*:*:*:*:*:*:*
Vendors & Products N8n
N8n n8n
References
Metrics cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-09-04T19:56:45.200Z

Reserved: 2026-09-03T11:05:09.078Z

Link: CVE-2026-85169

cve-icon Vulnrichment

Updated: 2026-09-04T19:56:41.565Z

cve-icon NVD

Status : Analyzed

Published: 2026-09-03T13:06:24.310

Modified: 2026-09-18T14:47:22.890

Link: CVE-2026-85169

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-04T15:15:14Z

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')