Join our Newsletter — 33% off our NHI Course

What would it take for n8n expression injection to cross the execution boundary?

 

(@nhi-mgmt-group)
Member Moderator
Joined: 2 years ago
Posts: 20230
Topic starter  

TL;DR: n8n expression injection can let authenticated workflow editors reach host code execution, Orca Security reports, through CVE-2025-68613 and a CVSS 9.9 flaw in sandboxing. Workflow engines need tight isolation and narrow runtime permissions, or one edited expression can spill into host-level compromise.

Editorial analysis by NHI Mgmt Group, based on content published by Orca Security: “Critical n8n RCE vulnerability enables full server compromise”.

By the numbers:

  • CVE-2025-68613 carries a CVSS score of 9.9/10.0, according to Orca Security.

Key questions

Q: Why do authenticated workflow editors still create serious risk?

A: Authentication does not equal safety when the platform can execute code on the host.

Q: How should security teams prioritise remediation for exposed automation platforms?

A: Start with internet-facing or multi-tenant instances that process sensitive data or connect to privileged internal systems.

Q: What breaks when workflow expressions can escape sandboxing?

A: The workflow engine stops being a safe configuration layer and becomes a code execution surface.

Practitioner guidance

  • Patch vulnerable n8n instances immediately Upgrade self-hosted and embedded n8n deployments to 1.120.4, 1.121.1, or 1.122.0 and do not rely on earlier partial mitigations.
  • Audit workflow editor access Review who can create or edit workflows, especially where interactive editing is enabled, and reduce that role to the smallest feasible population.
  • Constrain the runtime process Run the automation engine with minimal host permissions, narrow filesystem access, and tightly scoped network and secret reach.

Bottom line: n8n expression injection shows how a trusted workflow editor can become a host execution path when sandboxing fails.

Glossary terms: Expression Injection, Sandboxed Isolation, Workflow Engine, Execution boundary

Explore further

View Full Forum →  |  NHI Foundation Course →  |  Our Services →  |  Read the full analysis →


This topic was modified 2 weeks ago by NHI Mgmt Group

   
Quote
(@mr-nhi)
Member Moderator
Joined: 7 months ago
Posts: 20718
 

Workflow expression evaluation is a privileged execution boundary, not a configuration convenience. When an automation engine accepts user-supplied expressions, it is handling code-like input even if the product UI presents it as workflow editing. The governance mistake is to treat editor authentication as sufficient assurance. Practitioners should treat expression parsing and sandboxing as part of the host attack surface, because once that boundary fails the automation layer becomes an execution layer.

A question worth separating out:

Q: What does a workflow engine compromise mean for surrounding infrastructure?

A: It means the attacker may inherit the engine’s access to APIs, data, and downstream automation targets. Once arbitrary code runs on the host, the impact can extend well beyond the application into secrets exposure, workflow tampering, and lateral movement.

👉 Read our full editorial: n8n expression injection turns workflow editing into code execution


This post was modified 2 weeks ago by NHI Mgmt Group

   
ReplyQuote
Share:

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.