---
id: CVE-2026-85169
title: >-
  n8n versions before 1.123.73, 2.35.4, and 2.36.2 contain an expression sandbox
  escape in the $fromAI handler
summary: >-
  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;
  agai…
severity: high
cvss: 8.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-94
vendor: n8n
product: n8n
affected:
  - n8n < 1.123.73
  - 'n8n >= 2.0.0, < 2.35.4'
  - 'n8n >= 2.36.0, < 2.36.2'
patched:
  - n8n 2.36.2
published: '2026-09-03'
updated: '2026-09-18'
sourceUpdated: '2026-09-18T14:47:22.890'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-85169'
references:
  - url: 'https://github.com/n8n-io/n8n/security/advisories/GHSA-9x83-43r8-5hwc'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/n8n-before-1.123.73-remote-code-execution-via-fromai-prototype-leak
    label: disclosure@vulncheck.com
tags:
  - nvd
epss: 0.00483
epssPercentile: 0.40799
ingestedAt: '2026-09-08T21:11:12.290Z'
---

## Overview

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.

## Affected

- `n8n < 1.123.73`
- `n8n >= 2.0.0, < 2.35.4`
- `n8n >= 2.36.0, < 2.36.2`

## Remediation

Upgrade past the affected range:

- `n8n 2.36.2`
