Skip to main content
VulnerabilityPublished

n8n: Expression sandbox escape via arrow-function bodies enabling command execution

Affects n8nSource GCVE Database

0

CVSS 8.7 High : upgrade to 2.32.1 soon.

Data as of 22 Jul 2026, 23:27 UTC

CVSS 4.0 base score
8.7High
How severe the flaw is on the 0–10 CVSS scale.
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:N

What to do

Upgrade n8n to 2.32.1; n8n to 2.31.5.

Affected software

ProductAffectedFixed in
npmn8nAffected
  • >=2.32.0 <2.32.1
Fixed in
  • 2.32.1
npmn8nAffected
  • <2.31.5
Fixed in
  • 2.31.5

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

Community reviews

Loading reviews…