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

- Severity: Medium 5.3 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-01)
- Published: 2026-06-16T22:39:46.000Z
- Modified: 2026-10-29T21:16:00.131Z
- Also known as: GHSA-jwm3-qcfw-c5pp
- Weaknesses: CWE-184, CWE-693
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- n8n n8n: from 2.26.0 before 2.26.2; before 2.25.7 (not affected: 2.26.2; 2.25.7)
- n8n (npm): from 2.26.0 before 2.26.2; before 2.25.7

## Every score

- VulnCheck: CVSS:4.0 5.3 Medium `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`
- VulnCheck: CVSS:3.1 5.0 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N`
- GitHub: CVSS:3.1 5.0 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`

## References

- <https://github.com/n8n-io/n8n/security/advisories/GHSA-jwm3-qcfw-c5pp> (mitigation, vendor-advisory, web)
- <https://www.vulncheck.com/advisories/n8n-ast-validator-bypass-in-python-code-node> (third-party-advisory)
- <https://github.com/n8n-io/n8n> (package)

## Sources

- CVE List: [CVE-2026-56777](https://www.cve.org/CVERecord?id=CVE-2026-56777), CVE Terms of Use, modified 2026-10-29
- GitHub Advisory Database: [GHSA-jwm3-qcfw-c5pp](https://github.com/advisories/GHSA-jwm3-qcfw-c5pp), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2026-56777](https://nvd.nist.gov/vuln/detail/CVE-2026-56777), Public domain, modified 2026-10-29

---

Page: https://cve.day/CVE-2026-56777 · Whole record: https://cve.day/CVE-2026-56777.json · Rebuilt by cve.day 2026-11-25T22:59:26.853Z
