CVE-2026-49444
JSON

7.1high

n8n: Python sandbox escape

Severity
7.1high CVSS:4.0 by GitHub_M
Exploit likelihood
0.37% (higher than 32% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-9pq8-m8gp-4p53

Description

n8n is an open source workflow automation platform. Prior to 1.123.48, 2.21.8, and 2.22.4, an authenticated user with permission to create or modify workflows containing a Python Code Node could escape the sandbox and achieve arbitrary code execution on the task runner container. This vulnerability is fixed in 1.123.48, 2.21.8, and 2.22.4.

Affected

Product or packageVersionsReported by
n8n-io n8n< 1.123.48, >= 2.0.0-rc.0, < 2.21.8, >= 2.22.0, < 2.22.4CVE List
n8n (npm)before 1.123.48, from 2.22.0 before 2.22.4, from 2.0.0-rc.0 before 2.21.8GitHub Advisory Database
n8n n8nbefore 1.123.48, from 2.0.0 before 2.21.8, from 2.22.0 before 2.22.4NVD

All scores

GitHub_M7.1high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
GitHub8.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
NVD8.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N

Classification

CWE-20

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

n8n is an open source workflow automation platform. Prior to 1.123.48, 2.21.8, and 2.22.4, an authenticated user with permission to create or modify workflows containing a Python Code Node could escape the sandbox and achieve arbitrary code execution on the task runner container. This vulnerability is fixed in 1.123.48, 2.21.8, and 2.22.4.

GitHub Advisory Database

Impact

An authenticated user with permission to create or modify workflows containing a Python Code Node could escape the sandbox and achieve arbitrary code execution on the task runner container.

This issue only affects instances where the Python Task Runner is enabled.

Patches

The issue has been fixed in n8n versions 1.123.48, 2.21.8, and 2.22.4. Users should upgrade to one of these versions or later to remediate the vulnerability.

Workarounds

If upgrading is not immediately possible, administrators should consider the following temporary mitigations:

  • Limit workflow creation and editing permissions to fully trusted users only.
  • Disable the Python Code node by adding n8n-nodes-base.code to the NODES_EXCLUDE environment variable, or disable the Python Task Runner entirely.

These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.

NVD (es)

n8n es una plataforma de automatización de flujos de trabajo de código abierto. Antes de 1.123.48, 2.21.8 y 2.22.4, un usuario autenticado con permiso para crear o modificar flujos de trabajo que contengan un Nodo de Código Python podría escapar del sandbox y lograr ejecución de código arbitrario en el contenedor del ejecutor de tareas. Esta vulnerabilidad está corregida en 1.123.48, 2.21.8 y 2.22.4.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-49444 changed 2026-06-23CVE Terms of Use
GitHub Advisory DatabaseGHSA-9pq8-m8gp-4p53 changed 2026-07-20CC-BY-4.0
NVDCVE-2026-49444 changed 2026-10-26Public domain