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

CISA SSVC decision points

Exploitationnone
Automatableno
Technical impactpartial
Scored2026-07-01

Timeline

  1. 2026-06-16GitHub advisory published (GHSA-jwm3-qcfw-c5pp)14 days before publication
  2. 2026-06-30Published by the CNA22:08 UTC
  3. 2026-07-01CISA SSVC decision recorded1 day after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

GitHub advisory GHSA-jwm3-qcfw-c5pp, affected packages:

PackageVulnerable versionsFixed in
npm n8nbefore 2.25.72.25.7
npm n8nfrom 2.26.0 before 2.26.22.26.2

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
n8n n8nbefore 2.25.7fixed in 2.25.7from 2.26.0 before 2.26.2fixed in 2.26.22.25.72.26.2

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources