# CVE-2026-0863: Sandbox escape in n8n Python task runner allows for arbitrary code execution on the underlying host.

- Severity: High 8.5 (CVSS:3.1, scored by JFROG) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H`
- 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): 9.21%, higher than 95% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2026-01-18T15:37:07.529Z
- Modified: 2026-06-17T10:11:31.430Z
- Weaknesses: CWE-94, CWE-95
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: JFROG

## Description

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.

(As written by CVE List.)

## Affected

- n8n: from 2.4.0 before 2.4.2; before 1.123.14; from 2.0.0 before 2.3.5
- n8n n8n: up to 1.123.14; from 2.0.0 up to 2.3.5; from 2.4.0 up to 2.4.2

## Every score

- JFROG: CVSS:3.1 8.5 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H`
- 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://research.jfrog.com/vulnerabilities/n8n-python-runner-sandbox-escape-jfsa-2026-001651077/> (exploit, third-party-advisory)
- <https://www.smartkeyss.com/post/cve-2026-0863-python-sandbox-escape-in-n8n-via-exception-formatting-and-implicit-code-execution> (exploit, third-party-advisory)
- <https://github.com/n8n-io/n8n/commit/b73a4283cb14e0f27ce19692326f362c7bf3da02> (patch)

## Sources

- CVE List: [CVE-2026-0863](https://www.cve.org/CVERecord?id=CVE-2026-0863), CVE Terms of Use, modified 2026-01-23
- NVD: [CVE-2026-0863](https://nvd.nist.gov/vuln/detail/CVE-2026-0863), Public domain, modified 2026-06-17

---

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