{"id":"CVE-2025-68668","aliases":["CVE-2025-68668","GHSA-62r4-hw23-cc8v"],"related":[],"kind":"vulnerability","state":"published","title":"n8n Vulnerable to Arbitrary Command Execution in Pyodide based Python Code Node","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\nA sandbox bypass vulnerability exists in the Python Code Node that uses Pyodide.\n\nAn 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.\n\n### Patches\nIn n8n version 1.111.0, a task-runner-based native Python implementation was introduced as an optional feature, providing a more secure isolation model.\n\nTo enable it, you need to configure the `N8N_RUNNERS_ENABLED` and `N8N_NATIVE_PYTHON_RUNNER` environment variables.\n\nThis implementation became the default starting with n8n version 2.0.0.\n\n### Workarounds\n- Disable the Code Node by setting the environment variable `NODES_EXCLUDE: \"[\\\"n8n-nodes-base.code\\\"]\"` ([Docs)](https://docs.n8n.io/hosting/securing/blocking-nodes/)\n- 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.\n- Configure n8n to use the task runner based Python sandbox via the `N8N_RUNNERS_ENABLED` and `N8N_NATIVE_PYTHON_RUNNER` environment variables. ([Docs](https://docs.n8n.io/hosting/configuration/task-runners/))\n\n### Resources\n- n8n documentation: [Blocking access to nodes](https://docs.n8n.io/hosting/securing/blocking-nodes/)\n- n8n documentation: [Code Node (Python)](https://docs.n8n.io/code/code-node/#python-native)\n- n8n documentation: [Task Runners](https://docs.n8n.io/hosting/configuration/task-runners/)","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2025-12-26T18:18:05.000Z","modified":"2026-10-13T10:10:00.193Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L","score":9.9,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L","score":9.9,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L","score":9.9,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":9.9,"rating":"CRITICAL"}],"cwes":["CWE-693"],"affected":[{"ranges":[{"version":">= 1.0.0, < 2.0.0","status":"affected"}],"vendor":"n8n-io","product":"n8n","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.0.0","status":"affected","fixed":"2.0.0"}],"ecosystem":"npm","package":"n8n","purl":"pkg:npm/n8n","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"1.0.0","fixed":"2.0.0"}],"vendor":"n8n","product":"n8n","cpe":"cpe:2.3:a:n8n:n8n:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/n8n-io/n8n/security/advisories/GHSA-62r4-hw23-cc8v","tags":["patch","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.smartkeyss.com/post/cve-2025-68668-breaking-out-of-the-python-sandbox-in-n8n","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-68668","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/n8n-io/n8n","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-12-26T21:54:21.742Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-68668","url":"https://www.cve.org/CVERecord?id=CVE-2025-68668","licence":"CVE Terms of Use","modified":"2026-01-05T16:59:41.342Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-62r4-hw23-cc8v","url":"https://github.com/advisories/GHSA-62r4-hw23-cc8v","licence":"CC-BY-4.0","modified":"2026-02-03T03:13:57.373Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-68668","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-68668","licence":"Public domain","modified":"2026-10-13T10:10:00.193Z"}],"updatedAt":"2026-11-25T22:59:09.955Z","epss":{"score":0.00944,"percentile":0.59616,"date":"2026-11-30T12:00:22.000Z"}}