Skip to main content

n8n CVE-2026-49444

HIGH
Improper Input Validation (CWE-20)
2026-06-16 https://github.com/n8n-io/n8n GHSA-9pq8-m8gp-4p53
8.5
CVSS 3.1 · GitHub Advisory
Share

Severity by source

GitHub Advisory PRIMARY
8.5 HIGH
AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N
vuln.today AI
9.9 CRITICAL

Network-reachable authenticated low-priv user (PR:L) escapes Python sandbox to run arbitrary code in the task runner container, yielding full C/I/A on a separate component, hence S:C and high impacts.

3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

Primary rating from GitHub Advisory.

CVSS VectorGitHub Advisory

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N
Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
Low
Availability
None

Lifecycle Timeline

2
Source Code Evidence Fetched
Jun 16, 2026 - 18:23 vuln.today
Analysis Generated
Jun 16, 2026 - 18:23 vuln.today

DescriptionGitHub Advisory

Impact

An authenticated user with permission to create or modify workflows containing a Python Code Node could escape the sandbox and achieve arbitrary code execution on the task runner container.

This issue only affects instances where the Python Task Runner is enabled.

Patches

The issue has been fixed in n8n versions 1.123.48, 2.21.8, and 2.22.4. Users should upgrade to one of these versions or later to remediate the vulnerability.

Workarounds

If upgrading is not immediately possible, administrators should consider the following temporary mitigations:

  • Limit workflow creation and editing permissions to fully trusted users only.
  • Disable the Python Code node by adding n8n-nodes-base.code to the NODES_EXCLUDE environment variable, or disable the Python Task Runner entirely.

These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.

AnalysisAI

Sandbox escape in n8n workflow automation platform allows authenticated users with workflow edit permissions to break out of the Python Code Node sandbox and execute arbitrary code on the task runner container. The flaw affects n8n versions prior to 1.123.48, 2.21.8, and 2.22.4 when the Python Task Runner is enabled, with publicly available exploit code exists via the published GHSA advisory text. …

Unlock full vulnerability intelligence

  • Risk assessment & exploitation conditions
  • Attack chain visualization
  • Remediation with exact patch versions
  • Threat intelligence from 22 sources
  • Personal watchlist & email alerts

Free forever · No credit card required

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata

Recon
Authenticate to n8n with editor role
Delivery
Create workflow with Python Code Node
Exploit
Submit sandbox-escape Python payload
Install
Trigger workflow execution
C2
Escape Python sandbox in task runner
Execute
Execute arbitrary code in container
Impact
Access secrets and pivot internally

Vulnerability AssessmentAI

Exploitation Exploitation requires three concrete conditions drawn directly from the advisory: (1) the n8n instance must have the Python Task Runner explicitly enabled - it is not enabled in every deployment; (2) the attacker must hold an authenticated n8n account with permission to create or modify workflows containing a Python Code Node (n8n-nodes-base.code); and (3) the attacker must be able to reach the n8n web UI/API over the network (AV:N). … Additional conditions and limiting factors are described in the full assessment.
Risk Assessment The CVSS 3.1 vector AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N (score 8.5) reflects network-reachable exploitation by an authenticated low-privileged user with a scope change - consistent with breaking out of the sandbox into the host task runner. … Full risk analysis with EPSS, KEV, and SSVC signal comparison available after sign-in.
Exploit Scenario An attacker obtains or is granted a low-privileged n8n account with permission to create or edit workflows (for example, a workflow developer role in a multi-tenant SaaS-style internal deployment). They create or modify a workflow containing a Python Code Node with a crafted payload that abuses the sandbox weakness to escape the restricted Python interpreter and execute arbitrary commands inside the task runner container, then pivot to read secrets, environment variables, or reach internal services accessible from that container.
Remediation Vendor-released patch: upgrade to n8n 1.123.48, 2.21.8, or 2.22.4 (or later in each branch), per advisory GHSA-9pq8-m8gp-4p53 at https://github.com/n8n-io/n8n/security/advisories/GHSA-9pq8-m8gp-4p53. … Detailed patch versions, workarounds, and compensating controls in full report.

Recommended ActionAI

24 hours: Inventory all n8n deployments with Python Task Runner enabled; identify users with workflow editor permissions. …

Sign in for detailed remediation steps and compensating controls.

Threat intelligence, references, and detailed analysis are available after sign-in.

Share

CVE-2026-49444 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy