{"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.40783,"ingestedAt":"2026-09-08T21:11:12.290Z","slug":"CVE-2026-85169","body":"## Overview\n\nn8n 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.\n\n## Affected\n\n- `n8n < 1.123.73`\n- `n8n >= 2.0.0, < 2.35.4`\n- `n8n >= 2.36.0, < 2.36.2`\n\n## Remediation\n\nUpgrade past the affected range:\n\n- `n8n 2.36.2`","depth":"twilight","depthScore":48,"depthScoreParts":{"impact":48.4,"likelihood":0.1,"exploitation":0,"ransomware":0},"changes":[{"seq":206882,"id":"CVE-2026-85169","ts":1789746306702,"field":"cvss","old":null,"new":"8.8"},{"seq":206881,"id":"CVE-2026-85169","ts":1789746306702,"field":"severity","old":"none","new":"high"}]}