CVE-2026-85165 is a sandbox escape in n8n that exploits how JavaScript resolves identifiers through standard scoping semantics rather than through any clever filter bypass. Four syntactic positions fail to intercept global resolution: spread operators, computed property keys, switch-case expressions, and class-extension clauses. When evaluated code in these positions references a global like Error or Object, the sandbox doesn't intercept the lookup — it gets the actual host global because that's what JavaScript's lexical scope does by default.
The most dangerous dimension is persistence. An attacker with workflow-edit permissions can mutate shared host objects, and those mutations survive until the process restarts. This isn't a transient read during evaluation — it's a durable state compromise that affects every expression evaluated afterward, by every user. You're not looking at a single-execution sandbox bypass; you're looking at a privilege persistence bug that happens to manifest through expression evaluation.
This reframes the permission model question. In n8n, 'edit workflow' isn't an admin capability — it's a standard authoring role that many non-technical users and integration bots hold. But it grants the ability to write expressions that execute server-side against shared infrastructure. The CVE correctly identifies 'authenticated user with workflow-edit' as the threat actor, which means the blast radius extends to anyone whose workflows execute after a malicious workflow modification poisons the host state.
The class-extension vector reveals something important: the sandbox was likely built around patching specific dangerous globals and operations, not around JavaScript's scoping semantics as a system. The fix probably adds these syntactic positions to an interception list, but the underlying architecture — evaluating code against mutable host objects — remains. Future syntactic additions to JavaScript that implicitly access globals through standard scoping will create the same failure mode.
Review your permission model with the understanding that workflow-edit implies expression-evaluation capability on shared infrastructure, which is an extraordinary privilege in most deployments. The persistence mechanism also warrants architectural review: understand whether evaluated expressions are cached in forms that retain mutated references, and audit for other syntactic positions where your sandbox may not be intercepting standard scope resolution.