CVE-2026-56777
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.
Severity
MEDIUM
CVSS v3
5.0
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N · source cna
CVSS v4
5.3
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 · source cna
Exploit chance (EPSS)
0.326%
chance of exploitation in the next 30 days
higher than 26.1% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
None public
Exploit references (NVD and CNA): 0
Metasploit modules: 0
Nuclei templates: 0
Weakness
- CWE-184: Incomplete List of Disallowed Inputs
CISA SSVC decision points
| Exploitation | none |
|---|---|
| Automatable | no |
| Technical impact | partial |
| Scored | 2026-07-01 |
Timeline
- 2026-06-16GitHub advisory published (GHSA-jwm3-qcfw-c5pp)14 days before publication
- 2026-06-30Published by the CNA22:08 UTC
- 2026-07-01CISA SSVC decision recorded1 day after publication
Exploit and advisory records
GitHub advisory GHSA-jwm3-qcfw-c5pp, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| npm n8n | before 2.25.7 | 2.25.7 |
| npm n8n | from 2.26.0 before 2.26.2 | 2.26.2 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| n8n n8n | before 2.25.7fixed in 2.25.7from 2.26.0 before 2.26.2fixed in 2.26.2 | 2.25.72.26.2 |
References
- https://github.com/n8n-io/n8n/security/advisories/GHSA-jwm3-qcfw-c5pp
- https://www.vulncheck.com/advisories/n8n-ast-validator-bypass-in-python-code-node
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-56777'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-56777'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-56777'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-56777'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).