CVE-2026-85169: n8n - Remote Code Execution
- Cve: CVE-2026-85169
- Name: n8n - Remote Code Execution
- 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.
- Impact: Attackers with workflow-build privilege can execute arbitrary code in the main n8n process, leading to full remote code execution.
- Remediation: Update to version 1.123.73, 2.35.4, 2.36.2 or later.
- Vulnerability type: template_injection
- Vulnerability impact: remote_code_execution
- Requirement type: logged_in
- Requirements: Attacker needs workflow-build privilege
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.00879
- Epss percentile: 0.59992
- Assignee: [email protected]
- Published at: 2026-09-03T13:06:24Z
- Age in days: 82
- Modified at: 2026-10-29T21:17:34Z
- Patch available: yes
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-85169
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-94 | Improper Control of Generation of Code |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/n8n-io/n8n/security/advisories/GHSA-9x83-43r8-5hwc | nvd | Mitigation, Vendor Advisory |
| https://www.vulncheck.com/advisories/n8n-before-1.123.73-remote-code-execution-via-fromai-prototype-leak | nvd | Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| n8n:n8n | >= 2.36.0, < 2.36.2; >= 2.0.0, < 2.35.4; < 1.123.73 | no | nvd | /v1/products/n8n/n8n |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| n8n-io/n8n | security_advisory | yes | /v1/repositories/n8n-io/n8n |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Authentication required: yes
- Exposed hosts: 91957
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports