Vulnerabilities · 2026 · N8n
CVE-2026-0863
N8n vulnerability
Using string formatting and exception handling, an attacker may bypass n8n's python-task-executor sandbox restrictions and run arbitrary unrestricted Python code in the underlying operating system. The vulnerability can be exploited via the Code block by an authenticated user with basic permissions and can lead to a full n8n instance takeover on instances operating under "Internal" execution mode. If the instance is operating under the "External" execution mode (ex. n8n's official Docker image) - arbitrary code execution occurs inside a Sidecar container and not the main node, which significantly reduces the vulnerability impact.
Affected products
N8n. The exact versions are in the references.
What to do now
- Check your exposureFind out whether N8n runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/n8n-io/n8n/commit/b73a4283cb14e0f27ce19692326f362c7bf3da02 · Patch
- research.jfrog.com/vulnerabilities/n8n-python-runner-sandbox-escape-jfsa-2026-001651077/ · Exploit
- www.smartkeyss.com/post/cve-2026-0863-python-sandbox-escape-in-n8n-via-exception-formattin · Exploit
- nvd.nist.gov/vuln/detail/CVE-2026-0863
- cve.org/CVERecord?id=CVE-2026-0863
More vulnerabilities in N8n products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.