{"data":{"id":"d639eb5c-25e8-44b2-a368-a81267d685b9","title":"GHSA-jwm3-qcfw-c5pp: n8n: Python Code Node AST Validator Bypass","summary":"An authenticated user who can create or modify workflows containing a Python Code node can bypass the AST security validator and reach the task executor module namespace. On self-hosted instances with N8N_BLOCK_RUNNER_ENV_ACCESS=false, this also discloses environment variables accessible to the task runner process. The issue affects only instances with the Python Task Runner enabled and N8N_BLOCK_RUNNER_ENV_ACCESS=true.","solution":"The issue is fixed in n8n versions 2.25.7 and 2.26.2. Users should upgrade to one of these versions or later. If upgrading is not immediately possible, limit workflow creation and editing permissions to fully trusted users only, and 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 short-term measures.","labels":["security"],"sourceUrl":"https://github.com/advisories/GHSA-jwm3-qcfw-c5pp","publishedAt":"2026-06-16T22:39:46.000Z","cveId":null,"cweIds":null,"cvssScore":null,"cvssSeverity":"medium","severity":"medium","attackType":["other"],"issueType":"vulnerability","affectedPackages":["n8n@< 2.25.7 (fixed: 2.25.7)","n8n@>= 2.26.0, < 2.26.2 (fixed: 2.26.2)"],"affectedPackageNames":["n8n"],"affectedPackageRefs":["npm:n8n"],"affectedVendors":[],"affectedVendorsRaw":["n8n","Python Code node","Python Task Runner"],"classifierModel":"claude-haiku-5-5","classifierPromptVersion":"v4","summaryPromptVersion":"v2","headline":null,"headlinePromptVersion":null,"cvssVector":null,"attackVector":null,"attackComplexity":null,"privilegesRequired":null,"userInteraction":null,"exploitMaturity":null,"epssScore":null,"epssCheckedAt":null,"kevDateAdded":null,"advisoryAliases":["GHSA-jwm3-qcfw-c5pp"],"affectedPackagesSource":null,"affectedPackagesCheckedAt":null,"patchAvailable":true,"disclosureDate":"2026-06-16T22:39:46.000Z","fixReleasedAt":"2026-06-10T08:43:36.967Z","daysToFix":-6,"fixCheckedAt":"2026-10-29T21:34:27.893Z","capecIds":null,"crossRefCount":0,"attackSophistication":"moderate","impactType":["confidentiality","integrity"],"aiComponentTargeted":"agent","llmSpecific":false,"classifierConfidence":0.75,"researchCategory":null,"atlasIds":null,"fixes":[{"ecosystem":"npm","name":"n8n","fixedVersion":"2.26.2","matchedVersion":"2.26.2","fixReleasedAt":"2026-06-10T08:43:36.967Z","daysToFix":-6,"match":"ecosystem","source":"tracked","status":"found","checkedAt":"2026-10-29T21:34:27.747Z"},{"ecosystem":"npm","name":"n8n","fixedVersion":"2.25.7","matchedVersion":"2.25.7","fixReleasedAt":"2026-06-10T08:45:26.303Z","daysToFix":-6,"match":"ecosystem","source":"tracked","status":"found","checkedAt":"2026-10-29T21:34:27.747Z"}]}}