MediumVulnerability
CVE-2026-56777: n8n Python Code node validator bypass exposing task executor namespace
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2026-56777
- Published
- Record updated
- Fixed in
- The source references a patch, a mitigation or a vendor advisory.
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.3%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .
Summary
n8n versions before 2.25.7 and 2.26.x before 2.26.2 contain an abstract syntax tree (AST) security validator bypass in the Python Code node. An authenticated user who can create or modify workflows containing a Python Code node can bypass the validator and access the task executor module namespace, which can disclose environment variables accessible to the task runner process if N8N_BLOCK_RUNNER_ENV_ACCESS is configured to allow it. The issue affects only self-hosted instances with the Python Task Runner enabled.
Mitigation
Fixed in 2.25.7 and 2.26.2.
Related items
- MediumCVE-2026-143967: Wise Chat with AI unauthenticated stored cross-site scriptingSimilar attack, NVD/CVE Database
- MediumCVE-2026-135917: Apache Camel A2A component confused deputy via shared message headersSimilar attack, NVD/CVE Database
- MediumCVE-2026-107489: Improper Authentication vulnerability in Apache Camel A2A component. This issue affects Apache Camel: from 4.21.0…Similar attack, NVD/CVE Database
- MediumNSA urges immediate post-quantum shift after AI labs report cryptography breakthroughsSimilar attack, CSO Online
- LowPerplexity caught an AI attacker casing its cloudSimilar attack, CSO Online