Eval Injection Affecting n8n-workflow package, versions <1.120.7>=2.0.0-rc.0 <2.4.3>=2.5.0 <2.5.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
18.72% (97th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Eval Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-N8NWORKFLOW-15118125
  • published27 Jan 2026
  • disclosed27 Jan 2026
  • creditNatan Nehorai

Introduced: 27 Jan 2026

CVE-2026-1470  (opens in a new tab)
CWE-95  (opens in a new tab)

How to fix?

Upgrade n8n-workflow to version 1.120.7, 2.4.3, 2.5.1 or higher.

Overview

n8n-workflow is a Workflow base code of n8n

Affected versions of this package are vulnerable to Eval Injection during the Expression evaluation workflow. Expressions supplied by authenticated users during workflow configuration may be evaluated in an execution context that is not sufficiently isolated from the underlying runtime. An attacker can execute arbitrary code with the privileges of the main process by supplying crafted expressions during workflow configuration.

PoC

  1. Go to the n8n instance and create a new workflow
  2. Choose the "Edit Fields" block and double click on it
  3. Write the following payload in the field name or value:
{{ (function(){ var constructor = 123; with(function(){}){ return constructor("return process.mainModule.require('child_process').execSync('env').toString().trim()")() } })() }}
  1. Press "Execute step" and observe that the returned JSON object contains the env OS command's output

CVSS Base Scores

version 4.0
version 3.1