Paper discloses n8n expression sandbox escape and trust laundering attack chain
Start here
Pillar Security researchers Eilon Cohen and Ariel Fogel published a preprint paper, "Weird Machine Compositors," using the n8n expression sandbox as a case study to argue that expression sandboxes based on AST enumeration and blacklists cannot serve as security boundaries. The authors performed three rounds of bypass verification against n8n, corresponding to three CVEs in total, two with CVSS 9.4 and one with 9.5, with no authentication required; the analysis shows that the sandbox covers only 25 of the 72 AST node types in the ESTree specification, a coverage rate of about 35%, and the 47 unhandled types constitute an instruction set available to attackers. The paper proposes the concepts of composable weird machines and trust laundering, and gives an attack chain starting from public forms.
Generated by AI from reports · Updated 2026-10-16
Related research
This event's paper
- Weird Machine Compositors: Exploiting AI Orchestration at the Expression Layer
arXiv · 2026-09-27 · Deep reading
Progress timeline
- WeChat · LLM Security ResearchSelectedRisks in agent orchestration platforms: n8n's expression sandbox has structural flaws; external isolation cannot solve the root problem
Pillar Security researchers Eilon Cohen and Ariel Fogel published a preprint paper in September 2026 titled "Weird Machine Compositors," claiming that the expression sandbox in orchestration platforms like n8n has structural flaws, and that blacklist defenses based on enumeration and blocking cannot keep up with updates to the JavaScript language specification. The authors conducted three rounds of bypass verification against n8n. In the first round, on December 21, 2025, they escaped using TaggedTemplate combined with prepareStackTrace, corresponding to CVE-2026-25049 (CVSS 9.4); n8n applied nine targeted patches in v2.4.0. In the second round, they switched to SpreadElement to complete the escape at the compilation stage, rendering runtime patches ineffective. The third round involved unauthenticated attackers who could trigger the issue without an account.
- arXivSelectedWeird Machine combinator: leveraging AI orchestration at the expression layer
The arXiv paper uses n8n's expression sandbox as a case study to argue that AST-enumeration- and blacklist-based expression sandboxes cannot serve as security boundaries. The authors break through n8n's expression sandbox through three rounds of escalating bypasses, corresponding to three CVEs, two with CVSS 9.4 and one 9.5, without requiring authentication; analysis shows the sandbox covers only 25 of the 72 AST node types in the ESTree specification, a coverage rate of 35%, with the 47 unhandled types forming an attacker-usable instruction set. The paper proposes the concepts of a compositional weird machine and trust laundering, and gives an attack chain from public forms to persistent interception of LLM API calls, recommending mitigation through a policy reversal to a minimal allowlist plus process-level isolation, along with an open-source AST coverage analysis tool. All vulnerabilities were reported to n8n through coordinated disclosure, and n8n responded within 24–48 hours and released patches.
Related discussion
- Older than 72 hours · Not included in the 72-hour figures
- X@lujunneng · Edward LuArticle link: https://mp.weixin.qq.com/s/IGu2tfumq3rbnra9yfgAQw(opens the original post in a new tab)