Skip to content
HighVulnerability

CVE-2026-85169: n8n expression sandbox escape in $fromAI handler leading to code execution

Identifier
CVE-2026-85169
Published
Record updated
View JSON
Fixed in
The source references a patch, a mitigation or a vendor advisory.
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.6%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .

Summary

n8n versions before 1.123.73, 2.35.4, and 2.36.2 contain an expression sandbox escape in the $fromAI handler (CVE-2026-85169). $fromAI resolved a caller-supplied placeholder name without requiring an own property and admitted reserved keys, so with a primitive input it returned a live host-prototype reference. An attacker with workflow-build privilege can walk the prototype chain to the Function constructor and execute arbitrary code in the main n8n process, leading to remote code execution.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.