# CVE-2025-68668: n8n Vulnerable to Arbitrary Command Execution in Pyodide based Python Code Node

- Severity: Critical 9.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.94%, higher than 60% of CVEs (2026-11-30)
- Published: 2025-12-26T18:18:05.000Z
- Modified: 2026-10-13T10:10:00.193Z
- Also known as: GHSA-62r4-hw23-cc8v
- Weaknesses: CWE-693
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- n8n-io n8n: >= 1.0.0, < 2.0.0
- n8n (npm): from 1.0.0 before 2.0.0
- n8n n8n: from 1.0.0 before 2.0.0

## Every score

- GitHub_M: CVSS:3.1 9.9 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L`
- GitHub: CVSS:3.1 9.9 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L`
- NVD: CVSS:3.1 9.9 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`

## References

- <https://github.com/n8n-io/n8n/security/advisories/GHSA-62r4-hw23-cc8v> (patch, vendor-advisory, web)
- <https://www.smartkeyss.com/post/cve-2025-68668-breaking-out-of-the-python-sandbox-in-n8n> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-68668> (advisory)
- <https://github.com/n8n-io/n8n> (package)

## Sources

- CVE List: [CVE-2025-68668](https://www.cve.org/CVERecord?id=CVE-2025-68668), CVE Terms of Use, modified 2026-01-05
- GitHub Advisory Database: [GHSA-62r4-hw23-cc8v](https://github.com/advisories/GHSA-62r4-hw23-cc8v), CC-BY-4.0, modified 2026-02-03
- NVD: [CVE-2025-68668](https://nvd.nist.gov/vuln/detail/CVE-2025-68668), Public domain, modified 2026-10-13

---

Page: https://cve.day/CVE-2025-68668 · Whole record: https://cve.day/CVE-2025-68668.json · Rebuilt by cve.day 2026-11-25T22:59:09.955Z
