Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

n8n: Path-Confinement Bypass in computer-use search_files Allows Reading Files Outside the Base Directory

0
Medium
Published: 07/22/2026 (07/22/2026, 22:13:36 UTC)
Source: GCVE Database
Product: n8n

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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
High
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N

Affected software

npmghsa
n8n
Affected versions
>=2.32.0 <2.32.1
npmghsa
n8n
Affected versions
<2.31.5

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/22/2026, 23:26:38 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses