CVE-2026-56777CWE-184

n8n - AST Validator Bypass in Python Code Node

Medium · published June 30, 2026

CVSS v4.0
5.3
EPSS
0%
Percentile
24.5
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v4.0
5.3 · MEDIUM
Vector
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
EPSS
0.00326 · 24.5th percentile
Weakness
CWE-184 · Incomplete List of Disallowed Inputs
Published
2026-06-30T22:08Z
EPSS history
Timeline
  • 30 JUN 22:08Z
    n8n - AST Validator Bypass in Python Code Node
    cvelistv5