Loading...
Skip to main content

CVE-2026-25115 — Vulnerability in n8n — CVE Details

CRITICAL

n8n has a Python sandbox escape

Published February 4, 2026Updated March 25, 2026Source: osv

Summary

## Impact A vulnerability in the Python Code node allows authenticated users to break out of the Python sandbox environment and execute code outside the intended security boundary. Only authenticated users are able to execute code through Task Runners. This issue affected any deployment in which the following conditions were met: - Task Runners were enabled using `N8N_RUNNERS_ENABLED=true` (default: false) - Python was enabled `N8N_PYTHON_ENABLED=true` - Code Node was enabled (default: true) In case the `N8N_RUNNERS_MODE` is set to `external` (default: `internal`) the sandbox escape is limited to the sidecar container with lower risk for lateral movement. In that case a lower high severity is more appropriate. ## Patches This vulnerability is fixed in version 2.4.8 and later. ## Workarounds If an immediate upgrade cannot be applied, the following hardening steps are recommended: - Disable the Code Node by adding `n8n-nodes-base.code` to the `NODES_EXCLUDE` environment variable - Prefer external mode for isolation: run Task Runners in external mode so that untrusted task code executes in a separate sidecar container rather than within the main n8n process. This configuration significantly reduces the risk of in-process memory disclosure caused by unsafe buffer [allocations.In](http://allocations.in/) external mode, a launcher manages Task Runner processes in a dedicated sidecar environment, separate from the primary n8n instance. See the [[n8n documentation](https://docs.n8n.io/hosting/configuration/task-runners/)](https://docs.n8n.io/hosting/configuration/task-runners/) for configuration details and required environment variables. ## Resources - [n8n Documentation — Task Runners](https://docs.n8n.io/hosting/configuration/task-runners/) — external mode, setup guide, and environment configuration details - [n8n Documentation — Blocking nodes](https://docs.n8n.io/hosting/securing/blocking-nodes/) — how to globally disable specific nodes

Advisory Timeline

  • First published February 4, 2026 (250 days ago).
  • Last revised March 25, 2026 — 48 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

npm
Update n8n to 2.4.8 or later
npm install n8n@2.4.8

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: npm (1).

PackageEcosystemAffectedFixed In
n8n
npm
All versions2.4.8

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-693
    Protection Mechanism FailureMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.9 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
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

Frequently Asked Questions

What is CVE-2026-25115?
n8n has a Python sandbox escape This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.9/10).
How do I check if my project is affected by CVE-2026-25115?
CVE-2026-25115 affects n8n. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-25115 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.9

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-8398-gmmx-564h

Related CVEs

  • CVE-2026-25052
    CRITICAL

    n8n's Improper File Access Controls Allow Arbitrary File Read by Authenticated Users

  • CVE-2026-27498
    CRITICAL

    n8n has Arbitrary Command Execution via File Write and Git Operations

  • CVE-2026-72763
    HIGH

    n8n: Shared-Workflow Editor Can Exfiltrate Credentials via Inline Sub-Workflow JSON

  • CVE-2026-65598
    HIGH

    n8n: Race Condition in Git Clone Node Allows Authenticated Users to Achieve Remote Code Execution

  • CVE-2026-72765
    HIGH

    n8n: Expression sandbox escape via arrow-function bodies enabling command execution

  • CVE-2026-65015
    HIGH

    n8n: AI Agents Project Viewer Privilege Escalation via run_node_tool

  • CVE-2025-62726
    HIGH

    n8n Vulnerable to Remote Code Execution via Git Node Pre-Commit Hook

  • CVE-2026-65590
    MEDIUM

    n8n: computer-use Shell Sandbox Not Enforced on Linux and Windows

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies