9.9critical
n8n Vulnerable to Arbitrary Command Execution in Pyodide based Python Code Node
- Severity
- 9.9critical CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.94% (higher than 60% of CVEs)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-62r4-hw23-cc8v
Description
n8n is an open source workflow automation platform. From version 1.0.0 to before 2.0.0, a sandbox bypass vulnerability exists in the Python Code Node that uses Pyodide. An authenticated user with permission to create or modify workflows can exploit this vulnerability to execute arbitrary commands on the host system running n8n, using the same privileges as the n8n process. This issue has been patched in version 2.0.0. Workarounds for this issue involve disabling the Code Node by setting the environment variable NODES_EXCLUDE: "[\"n8n-nodes-base.code\"]", disabling Python support in the Code node by setting the environment variable N8N_PYTHON_ENABLED=false, which was introduced in n8n version 1.104.0, and configuring n8n to use the task runner based Python sandbox via the N8N_RUNNERS_ENABLED and N8N_NATIVE_PYTHON_RUNNER environment variables.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| n8n-io n8n | >= 1.0.0, < 2.0.0 | CVE List |
| n8n (npm) | from 1.0.0 before 2.0.0 | GitHub Advisory Database |
| n8n n8n | from 1.0.0 before 2.0.0 | NVD |
All scores
| GitHub_M | 9.9critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L |
| GitHub | 9.9critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L |
| NVD | 9.9critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
n8n is an open source workflow automation platform. From version 1.0.0 to before 2.0.0, a sandbox bypass vulnerability exists in the Python Code Node that uses Pyodide. An authenticated user with permission to create or modify workflows can exploit this vulnerability to execute arbitrary commands on the host system running n8n, using the same privileges as the n8n process. This issue has been patched in version 2.0.0. Workarounds for this issue involve disabling the Code Node by setting the environment variable NODES_EXCLUDE: "[\"n8n-nodes-base.code\"]", disabling Python support in the Code node by setting the environment variable N8N_PYTHON_ENABLED=false, which was introduced in n8n version 1.104.0, and configuring n8n to use the task runner based Python sandbox via the N8N_RUNNERS_ENABLED and N8N_NATIVE_PYTHON_RUNNER environment variables.
GitHub Advisory Database
Impact
A sandbox bypass vulnerability exists in the Python Code Node that uses Pyodide.
An authenticated user with permission to create or modify workflows can exploit this vulnerability to execute arbitrary commands on the host system running n8n, using the same privileges as the n8n process.
Patches
In n8n version 1.111.0, a task-runner-based native Python implementation was introduced as an optional feature, providing a more secure isolation model.
To enable it, you need to configure the N8N_RUNNERS_ENABLED and N8N_NATIVE_PYTHON_RUNNER environment variables.
This implementation became the default starting with n8n version 2.0.0.
Workarounds
- Disable the Code Node by setting the environment variable
NODES_EXCLUDE: "[\"n8n-nodes-base.code\"]"(Docs) - Disable Python support in the Code node by setting the environment variable
N8N_PYTHON_ENABLED=false, which was introduced in n8n version 1.104.0. - Configure n8n to use the task runner based Python sandbox via the
N8N_RUNNERS_ENABLEDandN8N_NATIVE_PYTHON_RUNNERenvironment variables. (Docs)
Resources
- n8n documentation: Blocking access to nodes
- n8n documentation: Code Node (Python)
- n8n documentation: Task Runners
NVD (es)
n8n es una plataforma de automatización de flujos de trabajo de código abierto. Desde la versión 1.0.0 hasta antes de la 2.0.0, existe una vulnerabilidad de bypass de sandbox en el Nodo de Código Python que utiliza Pyodide. Un usuario autenticado con permiso para crear o modificar flujos de trabajo puede explotar esta vulnerabilidad para ejecutar comandos arbitrarios en el sistema anfitrión que ejecuta n8n, utilizando los mismos privilegios que el proceso de n8n. Este problema ha sido parcheado en la versión 2.0.0. Las soluciones alternativas para este problema implican deshabilitar el Nodo de Código configurando la variable de entorno NODES_EXCLUDE: '[\“n8n-nodes-base.code\”]', deshabilitar el soporte de Python en el nodo de Código configurando la variable de entorno N8N_PYTHON_ENABLED=false, la cual fue introducida en la versión 1.104.0 de n8n, y configurando n8n para usar el sandbox de Python basado en el ejecutor de tareas a través de las variables de entorno N8N_RUNNERS_ENABLED y N8N_NATIVE_PYTHON_RUNNER.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-68668 changed 2026-01-05 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-62r4-hw23-cc8v changed 2026-02-03 | CC-BY-4.0 |
| NVD | CVE-2025-68668 changed 2026-10-13 | Public domain |