n8n
Affected
- introduced
0, fixed2.4.8(semver)
Fixed versions
2.4.8
Fix
- Fixed version
2.4.8npm install [email protected]
Advisory
Also known as: CVE-2026-25115
n8n has a Python sandbox escape
Impact
A vulnerability in the Python Code node allows authenticated users to break out of the Python sandbox environment and execute code outside the intended security boundary.
Only authenticated users are able to execute code through Task Runners.
This issue affected any deployment in which the following conditions were met:
N8N_RUNNERS_ENABLED=true (default: false)N8N_PYTHON_ENABLED=trueIn case the N8N_RUNNERS_MODE is set to external (default: internal) the sandbox escape is limited to the sidecar container with lower risk for lateral movement. In that case a lower high severity is more appropriate.
Patches
This vulnerability is fixed in version 2.4.8 and later.
Workarounds
If an immediate upgrade cannot be applied, the following hardening steps are recommended:
n8n-nodes-base.code to the NODES_EXCLUDE environment variableResources
Critical Basis: The source's own band: CRITICAL
0, fixed 2.4.8 (semver)2.4.8
2.4.8npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0