CVE-2026-56777
published medium CVSS 4.0 · 5.3n8n - AST Validator Bypass in Python Code Node
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n8n | — | n8n2.26.0 to < 2.26.2 (affected · semver) · 2.26.2 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | VulnCheck |
| n8n | — | n8n0 to < 2.25.7 (affected · semver) · 2.25.7 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | VulnCheck |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- VulnCheck · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 5.0 | medium | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n8n | n8n | 2.26.0 to < 2.26.2 (affected · semver)2.26.2 (unaffected · semver)Default: unaffected | VulnCheck · cna |
| n8n | n8n | 0 to < 2.25.7 (affected · semver)2.25.7 (unaffected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-184 Incomplete List of Disallowed Inputs
References
2- GitHub Security Advisory (GHSA-jwm3-qcfw-c5pp) https://github.com/n8n-io/n8n/security/advisories/GHSA-jwm3-qcfw-c5pp
- VulnCheck Advisory: n8n - AST Validator Bypass in Python Code Node https://www.vulncheck.com/advisories/n8n-ast-validator-bypass-in-python-code-node
Provider assertions
2VulnCheck · cna
n8n - AST Validator Bypass in Python Code Node
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- acda1103ab7e7d33ff20fa21005be146c686e638d0dbbd238df85eaa0e715551
- Ingested
- 29 Oct 2026, 21:23:06 UTC
- Source record
- Official CVE record