CVE-2026-85169 PUBLISHED

n8n before 1.123.73 Remote Code Execution via $fromAI Prototype Leak

Assigner: VulnCheck
Reserved: 03.09.2026 Published: 03.09.2026 Updated: 03.09.2026

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.

Metrics

CVSS 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
CVSS Score: 8.7

Product Status

Vendor n8n-io
Product n8n
Versions Default: unaffected
  • affected from 0 to 1.123.73 (excl.)
  • Version 1.123.73 is unaffected
Vendor n8n-io
Product n8n
Versions Default: unaffected
  • affected from 0 to 2.36.2 (excl.)
  • Version 2.36.2 is unaffected
Vendor n8n-io
Product n8n
Versions Default: unaffected
  • affected from 0 to 2.35.4 (excl.)
  • Version 2.35.4 is unaffected

Credits

  • Haruna38 reporter

References

Problem Types

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