n8n: Path-Confinement Bypass in computer-use search_files Allows Reading Files Outside the Base Directory
A path-confinement bypass vulnerability exists in the n8n component '@n8n/computer-use' file-search tool. This flaw allows crafted search patterns to escape the configured base directory, enabling reading of arbitrary files accessible to the daemon's OS user outside the intended sandbox. The issue affects deployments where an attacker can influence the search input. Fixed in n8n versions 2.31.5 and 2.32.1, users should upgrade to these or later versions. Temporary mitigations include restricting access to trusted users, disabling affected workflows, and running n8n under a low-privilege user account.
AI Analysis
Technical Summary
The '@n8n/computer-use' file-search tool in n8n improperly restricts file searches to a configured base directory. An attacker able to control the search input can craft patterns that bypass this confinement, causing the tool to return file names and contents from locations outside the base directory. This results in disclosure of arbitrary local files readable by the daemon's OS user. The vulnerability is identified as CWE-22 (Path Traversal). It is fixed in n8n versions 2.31.5 and 2.32.1. No known exploits in the wild have been reported. The CVSS 4.0 vector indicates network attack vector, low attack complexity, partial privileges required, no user interaction, and high scope change, with an overall moderate severity rating.
Potential Impact
Successful exploitation allows an attacker with the ability to influence the file search input to read arbitrary files on the host system that the n8n daemon's OS user can access. This can lead to unauthorized disclosure of sensitive local files outside the intended sandbox directory, potentially exposing confidential information.
Mitigation Recommendations
A fix is available in n8n versions 2.31.5 and 2.32.1. Users should upgrade to one of these versions or later to remediate the vulnerability. If immediate upgrade is not possible, temporary mitigations include restricting n8n instance access to fully trusted users, disabling or removing AI agent workflows using the 'computer-use' package, and running the n8n process under a dedicated low-privilege user account. These workarounds do not fully eliminate the risk and should only be used as short-term measures.
n8n: Path-Confinement Bypass in computer-use search_files Allows Reading Files Outside the Base Directory
Description
A path-confinement bypass vulnerability exists in the n8n component '@n8n/computer-use' file-search tool. This flaw allows crafted search patterns to escape the configured base directory, enabling reading of arbitrary files accessible to the daemon's OS user outside the intended sandbox. The issue affects deployments where an attacker can influence the search input. Fixed in n8n versions 2.31.5 and 2.32.1, users should upgrade to these or later versions. Temporary mitigations include restricting access to trusted users, disabling affected workflows, and running n8n under a low-privilege user account.
CVSS v4.0
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The '@n8n/computer-use' file-search tool in n8n improperly restricts file searches to a configured base directory. An attacker able to control the search input can craft patterns that bypass this confinement, causing the tool to return file names and contents from locations outside the base directory. This results in disclosure of arbitrary local files readable by the daemon's OS user. The vulnerability is identified as CWE-22 (Path Traversal). It is fixed in n8n versions 2.31.5 and 2.32.1. No known exploits in the wild have been reported. The CVSS 4.0 vector indicates network attack vector, low attack complexity, partial privileges required, no user interaction, and high scope change, with an overall moderate severity rating.
Potential Impact
Successful exploitation allows an attacker with the ability to influence the file search input to read arbitrary files on the host system that the n8n daemon's OS user can access. This can lead to unauthorized disclosure of sensitive local files outside the intended sandbox directory, potentially exposing confidential information.
Mitigation Recommendations
A fix is available in n8n versions 2.31.5 and 2.32.1. Users should upgrade to one of these versions or later to remediate the vulnerability. If immediate upgrade is not possible, temporary mitigations include restricting n8n instance access to fully trusted users, disabling or removing AI agent workflows using the 'computer-use' package, and running the n8n process under a dedicated low-privilege user account. These workarounds do not fully eliminate the risk and should only be used as short-term measures.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-pf2q-pxhf-hgmw
- Osv Schema Version
- 1.4.0
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 4.0
Threat ID: 6a6150ca9c2644c7f8da00e4
Added to database: 07/22/2026, 23:22:50 UTC
Last enriched: 07/22/2026, 23:26:38 UTC
Last updated: 07/22/2026, 23:26:38 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.