CVE-2026-0863
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedUsing 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidencen8n's python-task-executor sandbox can be bypassed through string formatting and exception handling, allowing authenticated users with basic permissions to execute arbitrary Python code. In 'Internal' execution mode, this leads to full OS-level code execution on the main n8n instance, while 'External' mode limits impact to a Sidecar container.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data<= 1.123.14>= 2.0.0, <= 2.3.5>= 2.4.0, <= 2.4.2CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- Low
- User interaction
- None
- Scope
- Changed
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Check n8n versionRun `n8n --version` or check the version through the UI (Settings > About) and compare it against the affected ranges: <= 1.123.14, 2.0.0 to 2.3.5, or 2.4.0 to 2.4.2Affected if Your installed version falls within any of the affected ranges listed
-
Identify if python-task-executor is in useReview your n8n workflows to see if any nodes use the Python Task Executor functionality, or check the system logs for python-task-executor activityAffected if python-task-executor is actively used in your workflows or enabled in the configuration
-
Check execution mode configurationInspect the n8n configuration files or environment variables for the `EXECUTIONS_MODE` setting, or check the UI under Settings > Executions > Execution ModeAffected if The execution mode is set to 'Internal' rather than 'External'
-
Verify authenticated user accessReview user permissions and roles in n8n (Settings > Users) to determine if users with basic or standard permissions exist who could access the python-task-executorAffected if Basic or standard user accounts exist with access to workflow execution capabilities
-
Inspect sandbox configurationCheck the python-task-executor settings or configuration for any sandbox-related parameters that control string formatting and exception handling behaviorAffected if Custom sandbox settings exist or default sandbox configuration is in use without additional hardening
You are affected if your n8n version is within the vulnerable ranges AND python-task-executor is enabled AND you are using Internal execution mode with users who have basic permissions.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedImplement proper sanitization of string formatting and exception handling in the python-task-executor sandbox, or ensure instances run in 'External' execution mode to isolate code execution.
n8n 1.123.15+ (for v1.x) or n8n 2.3.6+ (for v2.0-2.3.x) or n8n 2.4.3+ (for v2.4.x)
- 1. Identify the current n8n version running in your environment using the UI (Settings > About) or CLI
- 2. For n8n version 1.x: Upgrade to version 1.123.15 or later
- 3. For n8n version 2.0.x - 2.3.x: Upgrade to version 2.3.6 or later
- 4. For n8n version 2.4.x: Upgrade to version 2.4.3 or later
- 5. After upgrade, verify the python-task-executor sandbox is functioning correctly by testing Code block executions
- 6. Review execution logs to confirm the sandbox is properly restricting Python code execution
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation3.0 h
- Implementation12.0 h
- Testing6.0 h
- Review / QA3.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $6,720.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-0863 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-0863 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data