CVE-2026-56777: n8n - Broken Access Control
- Cve: CVE-2026-56777
- Name: n8n - Broken Access Control
- Description: n8n before 2.25.7 and 2.26.x before 2.26.2 contains an abstract syntax tree (AST) security validator bypass in the Python Code node. An authenticated user with permission to create or modify workflows containing a Python Code node can bypass the validator and access the task executor module namespace. The issue only affects self-hosted instances where the Python Task Runner is enabled; where N8N_BLOCK_RUNNER_ENV_ACCESS is configured to allow it, this can disclose environment variables accessible to the task runner process.
- Impact: Authenticated users can bypass validation to access sensitive environment variables and internal namespaces, risking information disclosure and potential further exploitation.
- Remediation: Upgrade to version 2.25.7 or 2.26.2 or later.
- Vulnerability type: broken_access_control
- Vulnerability impact: information_disclosure
- Requirement type: logged_in
- Requirements: Python Task Runner must be enabled on self-hosted instances
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N
- Epss score: 0.00326
- Epss percentile: 0.25975
- Assignee: [email protected]
- Published at: 2026-06-30T23:17:32Z
- Age in days: 147
- Modified at: 2026-10-29T19:17:23Z
- Patch available: yes
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-56777
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-184 | Incomplete List of Disallowed Inputs |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/n8n-io/n8n/security/advisories/GHSA-jwm3-qcfw-c5pp | nvd | Mitigation, Vendor Advisory |
| https://www.vulncheck.com/advisories/n8n-ast-validator-bypass-in-python-code-node | nvd | Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| n8n:n8n | >= 2.26.0, < 2.26.2; < 2.25.7 | no | nvd | /v1/products/n8n/n8n |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| n8n-io/n8n | security_advisory | yes | /v1/repositories/n8n-io/n8n |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Authentication required: yes
- Exposed hosts: 91957
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports