n8n: Expression sandbox escape via arrow-function bodies enabling command execution
Affects n8nSource GCVE Database
CVSS 8.7 High : upgrade to 2.32.1 soon.
Data as of 22 Jul 2026, 23:27 UTC
- Patch
- Available – fixed in 2.32.1, 2.31.5
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NWhat to do
Upgrade n8n to 2.32.1; n8n to 2.31.5.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmn8n | Affected
| Fixed in
|
| npmn8n | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade n8n to version 2.31.5 or 2.32.1 or later to fully remediate this vulnerability. If immediate upgrading is not possible, restrict access to the n8n instance and limit workflow creation and editing permissions to fully trusted users only. These workarounds reduce risk but do not fully eliminate it.
Description
An authenticated user with permission to create or modify workflows in n8n can exploit a vulnerability in expression evaluation using arrow functions to escape the sandbox and execute arbitrary system commands on the host. This issue affects n8n versions before 2.31.5 and versions 2.32.0 up to but not including 2.32.1. The vulnerability has been fixed in versions 2.31.5 and 2.32.1. Temporary mitigations include restricting access and workflow editing permissions to fully trusted users until an upgrade can be applied.
References
- github.com/n8n-io/n8n/security/advisories/GHSA-gv7g-jm28-cr3m (opens in a new tab)
- github.com/n8n-io/n8n/commit/f69dfc6dd2178a14ea1624d2e1d403c2e755042f (opens in a new tab)
- github.com/n8n-io/n8n (opens in a new tab)
- github.com/n8n-io/n8n/releases/tag/n8n@2.31.5 (opens in a new tab)
- github.com/n8n-io/n8n/releases/tag/n8n@2.32.1 (opens in a new tab)