CVE-2026-65590: n8n: computer-use Shell Sandbox Not Enforced on Linux and Windows
The shell tool in n8n's `@n8n/computer-use` package enforced its sandbox only on macOS. On Linux and Windows, commands it ran had no filesystem or network limits. Only deployments that install and run `@n8n/computer-use` are affected, not standard n8n. Fixed in n8n 2.29.8 and 2.30.1.
Published Jul 22, 2026 · Analysis Oct 25, 2026
What an attacker can do
@n8n/computer-use lets an n8n agent run shell commands on a host. The tool was meant to confine those commands with a sandbox. The sandbox code ran only on macOS. On Linux and Windows the commands ran as plain processes of the computer-use agent, with full access to the host filesystem and network.
In practice the sandbox was the only guard between what the agent decides to run and the host. If a prompt-injected workflow, a malicious document the agent reads, or a user with access to the agent steers it into running a command, nothing limits that command. It can read files and secrets the agent's user can read, change files, and reach internal network services.
The CVSS 4.0 vector requires high privileges and an attacker precondition (AT:P), so exploitation needs a user or flow that can already direct the agent. The scoring puts the high impact on subsequent systems, not the n8n process itself. The CWE is OS command injection (CWE-78). The advisory says standard n8n installs, without this package, are not affected.
Who is affected
n8n deployments where @n8n/computer-use is explicitly installed and running on Linux or Windows hosts. Per the package data, n8n versions below 2.29.8, and 2.30.0 specifically (the range >= 2.30.0, < 2.30.1), are affected. macOS hosts already had the sandbox.
Check the n8n version and whether the package is present:
npm ls n8n
npm ls -g @n8n/computer-usen8n
- Ecosystem
- npm
- Affected
- >= 2.30.0, < 2.30.1
- Fixed in
- 2.30.1
- Check
npm ls n8n
n8n
- Ecosystem
- npm
- Affected
- < 2.29.8
- Fixed in
- 2.29.8
- Check
npm ls n8n
How to fix it
Upgrade n8n to 2.29.8 (for the 2.29 line) or 2.30.1 (for the 2.30 line), or any later release. The fix adds sandbox enforcement on Linux through bubblewrap. It also disables the shell tool entirely when a working sandbox cannot be set up, so a host without bubblewrap will lose the tool until you fix that.
For deployments that need unsandboxed shell access and accept the risk, an explicit opt-out flag, --dangerously-disable-shell-sandbox, exists.
If you cannot upgrade yet, the advisory suggests two temporary measures: do not deploy @n8n/computer-use on Linux or Windows hosts, and limit access to the n8n instance and the computer-use agent to fully trusted users. The advisory says these do not fully remove the risk.
How to tell if you were hit
Find hosts running the computer-use agent, then review what its shell tool ran. Look at the agent process's shell history, process tree and audit logs for commands that touch paths outside the intended working directory, read credential files, or open outbound connections to unexpected hosts. Review n8n execution logs for workflows that used the computer-use shell tool before you upgraded.
After the upgrade, a Linux host without bubblewrap will have the shell tool disabled, which shows the sandbox check works. If AI agents run on those hosts, Beam can record agent shell commands and file access and flag risky ones through its rules.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Impact
The shell tool in the @n8n/computer-use package applied its sandbox restrictions only on macOS. On Linux and Windows, shell commands executed by the tool ran without any filesystem or network restrictions, allowing unrestricted access to the host filesystem and network from within the computer-use agent process.
This issue only affects deployments where the @n8n/computer-use package is explicitly installed and running. It does not affect standard n8n installations.
Patches
The issue has been fixed in n8n versions 2.29.8 and 2.30.1. Users should upgrade to one of these versions or later to remediate the vulnerability.
The fix adds sandbox enforcement on Linux via bubblewrap and disables the shell tool entirely when a working sandbox cannot be established. An explicit opt-out flag (--dangerously-disable-shell-sandbox) is available for deployments that require unsandboxed shell access and accept the associated risk.
Workarounds
If upgrading is not immediately possible, administrators should consider the following temporary mitigations:
- Disable or avoid deploying the
@n8n/computer-usepackage on Linux or Windows hosts until the fix is applied. - Restrict access to the n8n instance and the computer-use agent to fully trusted users only.
These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.
Questions
- Does CVE-2026-65590 affect every n8n install?
No. The advisory limits it to deployments where the
@n8n/computer-usepackage is explicitly installed and running. Standard n8n installations without it are not affected.- Is macOS affected?
The advisory says the sandbox restrictions were applied only on macOS. The unsandboxed shell was the Linux and Windows behavior.
- Which n8n versions fix it?
n8n 2.29.8 and 2.30.1. The vulnerable ranges are versions below 2.29.8, and 2.30.0.
- Why did my shell tool stop working after the upgrade?
The fix disables the shell tool when it cannot set up a working sandbox, which on Linux uses bubblewrap. Install bubblewrap, or pass
--dangerously-disable-shell-sandboxif you accept running unsandboxed.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More n8n vulnerabilities
All n8n entriesCVE-2026-86073
n8n: Per-Resource OAuth Consent Bypass via Unbound Refresh Token Resource Substitution
medium5.9Sep 10, 2026CVE-2026-86074
n8n: Instance AI Credential Setup Accepts Unvalidated Probe URL from Fetched Content
medium5.9Sep 10, 2026CVE-2026-86075
n8n: Unauthenticated Persistent Storage Exhaustion via OAuth Dynamic Client Registration Endpoint
high8.7Sep 10, 2026CVE-2026-86076
n8n: Expression Sandbox Escape via Class-Field Sanitizer Rebinding Can Lead to Code Execution
high8.7Sep 10, 2026CVE-2026-86077
n8n: Anonymous Approval-Gate Bypass via Reused resumeToken over the Chat WebSocket
medium6.3Sep 10, 2026CVE-2026-86078
n8n: Prototype Pollution via Workflow Structure Summary Can Lead to Denial of Service
medium6.0Sep 10, 2026
