n8n: Expression sandbox escape via arrow-function bodies enabling command execution
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.
AI Analysis
Technical Summary
The vulnerability in n8n allows an authenticated user with workflow creation or modification permissions to craft expressions using arrow-function bodies that bypass the expression sandbox. This sandbox escape enables unintended system command execution on the host running n8n. The issue is tracked under CWE-94 (Improper Control of Generation of Code). It affects versions prior to 2.31.5 and versions 2.32.0 up to but excluding 2.32.1. The vendor has released fixes in versions 2.31.5 and 2.32.1 to address this issue.
Potential Impact
Successful exploitation permits an authenticated user with limited privileges to execute arbitrary system commands on the host running n8n, potentially leading to full system compromise or unauthorized actions beyond the intended sandboxed environment.
Mitigation Recommendations
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.
n8n: Expression sandbox escape via arrow-function bodies enabling command execution
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.
CVSS v4.0
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in n8n allows an authenticated user with workflow creation or modification permissions to craft expressions using arrow-function bodies that bypass the expression sandbox. This sandbox escape enables unintended system command execution on the host running n8n. The issue is tracked under CWE-94 (Improper Control of Generation of Code). It affects versions prior to 2.31.5 and versions 2.32.0 up to but excluding 2.32.1. The vendor has released fixes in versions 2.31.5 and 2.32.1 to address this issue.
Potential Impact
Successful exploitation permits an authenticated user with limited privileges to execute arbitrary system commands on the host running n8n, potentially leading to full system compromise or unauthorized actions beyond the intended sandboxed environment.
Mitigation Recommendations
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.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-gv7g-jm28-cr3m
- Osv Schema Version
- 1.4.0
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- HIGH
- Cvss Version
- 4.0
Threat ID: 6a6150cc9c2644c7f8da014a
Added to database: 07/22/2026, 23:22:52 UTC
Last enriched: 07/22/2026, 23:27:24 UTC
Last updated: 07/22/2026, 23:29:27 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.