Skip to content
MediumVulnerability

CVE-2026-56777: n8n Python Code node validator bypass exposing task executor namespace

Identifier
CVE-2026-56777
Published
Record updated
View JSON
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.