Subscribe to the Non-Human & AI Identity Journal

Notifications
Clear all

n8n sandbox escape: what it means for workflow and AI control


(@nhi-mgmt-group)
Member Moderator
Joined: 1 year ago
Posts: 2827
Topic starter  

TL;DR: CVE-2025-68668 in n8n allows post-auth remote code execution through Pyodide sandbox escapes, with the platform’s own automation role turning a single foothold into access to secrets, workflows, and connected systems, according to Cyera Research Labs. The real issue is not just patching one bug, but recognising that workflow engines can become control planes with far wider blast radius than teams assume.

NHIMG editorial — based on content published by Cyera: N8Scape (Pyodide sandbox escape), a critical post-auth RCE in n8n (CVE-2025-68668)

By the numbers:

Questions worth separating out

Q: What breaks when a workflow engine can execute untrusted code inside the same environment that stores secrets?

A: The boundary between application logic and trusted automation collapses.

Q: Why do workflow platforms create outsized NHI risk in enterprise environments?

A: Because they concentrate long-lived credentials, delegated access, and execution authority in one place.

Q: How do security teams know whether an automation platform has become too privileged?

A: Look for signals that the platform can both modify automations and reach sensitive credentials or identity state.

Practitioner guidance

  • Separate workflow authoring from secret access Ensure users who can edit workflows cannot directly read the credentials, tokens, or database state that those workflows use.
  • Reduce the privilege radius of automation runtimes Run code-execution features in isolated environments that cannot reach host processes, mounted databases, or shared secret stores.
  • Inventory long-lived credentials tied to automation platforms Map every API key, OAuth token, database password, and service account used by workflow engines, then classify each by downstream blast radius.

What's in the full article

Cyera's full research covers the operational detail this post intentionally leaves for the source:

  • The Pyodide escape paths and the exact bypass logic used to recover OS command execution.
  • The proof-of-concept flow that shows how post-auth RCE translates into administrative escalation.
  • The specific mitigation guidance for disabling Python execution or removing the Code node in affected deployments.
  • The runner-based architecture guidance that changes how untrusted code should be isolated in practice.

👉 Read Cyera’s analysis of the n8n sandbox escape and CVE-2025-68668 →

n8n sandbox escape: what it means for workflow and AI control?

Explore further

View Full Forum →  |  NHI Foundation Course →



   
Quote
(@mr-nhi)
Member Moderator
Joined: 4 weeks ago
Posts: 1125
 

Workflow automation has become an identity concentration point, not a neutral integration layer. When a platform like n8n holds long-lived credentials and executes trusted actions across SaaS, cloud, and internal systems, compromise of the platform becomes compromise of the trust fabric itself. That shifts the problem from application hardening to identity blast-radius control. Practitioners should treat orchestration engines as privileged non-human identity surfaces, not as ordinary apps.

A few things that frame the scale:

  • 96% of organisations store secrets outside of secrets managers in vulnerable locations including code, config files, and CI/CD tools, according to the Ultimate Guide to NHIs.
  • Only 5.7% of organisations have full visibility into their service accounts, which means most teams cannot reliably map the identities tied to automation risk.

A question worth separating out:

Q: Who is accountable when a workflow platform compromise leads to downstream cloud or SaaS abuse?

A: Accountability sits with the teams that granted and governed the delegation chain, not only with the application owner. Identity, platform, and security teams should define who owns workflow permissions, secret exposure, runtime isolation, and incident response when automation becomes the entry point to wider systems.

👉 Read our full editorial: n8n sandbox escape shows the blast radius of workflow control planes



   
ReplyQuote
Share: