CVE-2025-68668: N8scape: n8n Python Code Node Pyodide Sandbox Bypass
- Vendor
- N8n
CVE-2025-68668, also known as N8scape, is a protection-mechanism failure in n8n’s Pyodide-based Python Code Node. In n8n versions 1.0.0 through versions before 2.0.0, an authenticated user authorized to create or modify workflows can escape the intended Python sandbox and execute arbitrary commands on the n8n host with the privileges of the n8n process.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation permits arbitrary command execution on the host running n8n in the security context of the n8n service process. An attacker can therefore act with whatever host-level access and connected-resource access is available to that service account.
Mitigation
If you can’t patch tonight, do this now.
Where an immediate upgrade is not possible, disable the Code Node by excluding n8n-nodes-base.code; disable Python support in the Code Node with N8N_PYTHON_ENABLED=false, available from n8n 1.104.0; or configure the task runner-based Python sandbox using N8N_RUNNERS_ENABLED and N8N_NATIVE_PYTHON_RUNNER.
Remediation
Patch, then assume compromise.
Upgrade n8n to version 2.0.0 or later. Version 2.0.0 patches the issue and uses the task runner-based native Python implementation as the default Python execution model.
Exploits
No validated public exploits yet. Hidden: 1 rejected by Mallory's analysis as not a working exploit.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2025-68668 exploited in the wild?
- As of Sep 30, 2026, Mallory has no reports of CVE-2025-68668 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2025-68668?
- As of Sep 30, 2026, Mallory has found no public exploit for CVE-2025-68668.
- Is there a patch for CVE-2025-68668?
- Upgrade n8n to version 2.0.0 or later. Version 2.0.0 patches the issue and uses the task runner-based native Python implementation as the default Python execution model.
- What products are affected by CVE-2025-68668?
- N8n.
- How severe is CVE-2025-68668?
- CVE-2025-68668 has a CVSS v3.1 score of 9.9 (Critical) and an EPSS score of 0.94% (60th percentile) as of Sep 30, 2026.
Recent activity
63 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.