GHSA-8398-gmmx-564h: n8n has a Python sandbox escape
- Identifiers
- CVE-2026-25115GHSA-8398-gmmx-564h
- Published
- Record updated
- Affected
- n8n < 2.4.8
- Fixed in
- 2.4.8
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.6%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .
Summary
An authenticated user can break out of the Python sandbox in the n8n Python Code node and execute code outside its intended security boundary. The issue affects deployments with N8N_RUNNERS_ENABLED=true, N8N_PYTHON_ENABLED=true and the Code Node enabled; when N8N_RUNNERS_MODE is set to external, the escape is limited to the sidecar container and a lower high severity is considered more appropriate.
Mitigation
This vulnerability is fixed in version 2.4.8 and later. If an immediate upgrade cannot be applied, disable the Code Node by adding n8n-nodes-base.code to the NODES_EXCLUDE environment variable, or run Task Runners in external mode so untrusted task code executes in a separate sidecar container.
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- n8nnpmLLM dependency since 2026-02-11
Related items
- MediumCVE-2026-143864: InfiniFlow RAGFlow template injection in Canvas StringTransform HandlerSimilar attack, NVD/CVE Database
- MediumCVE-2026-85259: Gemini CLI Triage Flaw Lets Issue Authors Run Code in GitHub ActionsSimilar attack, StepSecurity Blog
- MediumCVE-2026-143967: Wise Chat with AI unauthenticated stored cross-site scriptingSimilar attack, NVD/CVE Database
- MediumCVE-2026-135917: Apache Camel A2A component confused deputy via shared message headersSimilar attack, NVD/CVE Database
- MediumCVE-2026-107489: Improper Authentication vulnerability in Apache Camel A2A component. This issue affects Apache Camel: from 4.21.0…Similar attack, NVD/CVE Database