CVE-2026-85169

n8n before 1.123.73 Remote Code Execution via $fromAI Prototype Leak

State
Published
Severity
8.7 High
Published
Sep 3, 2026
Updated
Oct 29, 2026
Reserved
Sep 3, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
4.08.7 HighCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NVulnCheck

Weaknesses

  • CWE-94 Improper Control of Generation of Code ('Code Injection')

Affected Products

ProductVersions
n8nn8n-io
  • before 1.123.73Affected
  • 1.123.73Not affected
n8nn8n-io
  • 2.36.0 to before 2.36.2Affected
  • 2.36.2Not affected
n8nn8n-io
  • 2.0.0-rc.0 to before 2.35.4Affected
  • 2.35.4Not affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.