LiveActive security incident?Get immediate response
CVE Record

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

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.

HighCVSS 8.5Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

CVE-2026-0863 lets a low-privileged authenticated n8n user escape the Python task sandbox through the Code block and run unrestricted Python. On Internal execution mode, this may enable full n8n instance takeover. External mode, such as the official Docker sidecar model, limits execution to a sidecar container and reduces impact.

Executive priority

Prioritize remediation for n8n systems with multiple users, automation access to sensitive systems, or Internal execution mode. This is high urgency because successful exploitation can move from workflow access to code execution and possible instance takeover.

Technical view

The issue is a CWE-95 sandbox escape in n8n’s python-task-executor involving string formatting and exception handling. CVSS is 8.5 High: network reachable, low privileges, no user interaction, high complexity, changed scope, and high confidentiality, integrity, and availability impact. A patch commit is referenced, but the source bundle does not name a fixed release version.

Likely exposure

Exposure is most relevant where untrusted or broadly provisioned authenticated users can use n8n Code blocks. Internal execution mode has the highest host-impact risk. External execution mode reduces impact to the sidecar container. The affected-version data in the bundle is limited; confirm exact installed versions against vendor guidance.

Exploitation context

The source bundle does not show CISA KEV listing or active exploitation evidence. Public advisories describe the vulnerability class and impact. Treat exploitability as credible for users with basic authenticated access to Code blocks, but do not assume internet-scale unauthenticated exploitation from the provided evidence.

Researcher notes

Do not infer a fixed version from the bundle; only a patch commit is cited. Validate exposure by configuration and permissions, not version alone. Internal versus External execution mode materially changes impact. No KEV or cited active-exploitation evidence is provided.

Mitigation direction

  • Apply the n8n fixed release containing commit b73a4283cb14e0f27ce19692326f362c7bf3da02 when available.
  • Check n8n vendor guidance for exact fixed versions and upgrade instructions.
  • Restrict Code block access to trusted users until remediation is complete.
  • Prefer External execution mode where operationally feasible to reduce host impact.
  • Review workflows created or modified by low-privileged users.

Validation and detection

  • Inventory all n8n instances, versions, and execution modes.
  • Confirm whether each instance includes the referenced patch commit or vendor-fixed release.
  • List users and roles with Code block permissions.
  • Review recent workflow changes involving Python Code blocks.
  • Verify External mode sidecar isolation where used.
Prepared
Confidence
high
Sources
5

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-95: Code execution behavior lookup

Code execution and unsafe deserialization weaknesses often justify reviewing execution behavior and process telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

Execution behavior lookup

The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
description · low confidence lookup

Privilege behavior lookup

The CVE wording references privilege impact, so privilege escalation and authorization behavior review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
description · low confidence lookup

Container behavior lookup

The affected technology mentions containers, so container-specific ATT&CK technique review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2026-0863 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
8.5 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
4Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
8.5CVSS 3.1HighCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H1.86Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

8.5High
CVSS 3.1 vector shape for CVE-2026-0863Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
Unknown vendorn8nn8n, 2.4.0, 0, 2.0.0Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-95 · source CWE mapping

Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')

Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.