CVE-2026-56777: n8n - AST Validator Bypass in Python Code Node

Published Jun 30, 2026
·
Updated

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 N8NBLOCKRUNNERENVACCESS is configured to allow it, this can disclose environment variables accessible to the task runner process.

Affected Software

3 affected components
n8n>2.25.0<=2.26.2
n8n N8n Node.js<2.25.7
n8n N8n Node.js>=2.26.0<2.26.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade n8n to a version that resolves this vulnerability.

    Fixed in 2.25.7
  2. Upgrade

    Upgrade n8n to a version that resolves this vulnerability.

    Fixed in 2.26.2
  3. Configuration

    In self-hosted n8n where Python Task Runner is enabled, ensure N8N_BLOCK_RUNNER_ENV_ACCESS is set to block access so environment variables accessible to the task runner process are not disclosed.

    n8n (Python Task Runner / runner environment access) N8N_BLOCK_RUNNER_ENV_ACCESS = configured to disallow task runner env access (do not allow)

Event History

Jun 30, 2026
CVE Published
via MITRE·10:08 PM
Data Sourced
via MITRE·10:08 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·11:17 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-56777?

The severity of CVE-2026-56777 is medium with a score of 5.

2

How do I fix CVE-2026-56777?

To fix CVE-2026-56777, upgrade n8n to version 2.25.7 or later, or to 2.26.2 or later.

3

What does CVE-2026-56777 affect?

CVE-2026-56777 affects n8n versions before 2.25.7 and 2.26.x before 2.26.2.

4

Who is vulnerable to CVE-2026-56777?

Authenticated users with permission to create or modify workflows in n8n are vulnerable to CVE-2026-56777.

5

What type of vulnerability is CVE-2026-56777?

CVE-2026-56777 is a security validator bypass in the Python Code node.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203