MISFIRE

Browse / AI Framework and Platform Flaws / CVE-2026-25115

n8n has a Python sandbox escape

CVE-2026-25115 · 2026-02-04 critical

Class
AI Framework and Platform Flaws (filed by a model that read the source)
Technique
Sandbox escape
Affected
n8n (npm)
Gets past
Sandbox or allowlist
CVSS
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
EPSS
0.6% chance of exploitation in 30 days

How it works, in short

An authenticated user can break out of the Python code node sandbox when task runners are enabled, running code outside the intended boundary. (Our summary, written by a model. The source text is below.)

Details

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:

In 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:

Resources

References

Source: GitHub Advisory Database, used under CC BY 4.0.