Skip to content
MediumVulnerability

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

Published
Record updated
View JSON
Affected
  • n8n < 2.31.5, fixed in 2.31.5, released July 22, 2026, on the day of disclosure
  • n8n >= 2.32.0, < 2.32.1, fixed in 2.32.1, released July 22, 2026, on the day of disclosure

Summary

The @n8n/computer-use file-search tool confined searches to a configured base directory. A crafted search pattern could bypass that confinement check and return the names and contents of files anywhere the daemon's OS user can read, whenever an actor could influence the tool's search input.

Mitigation

Fixed in n8n versions 2.31.5 and 2.32.1; upgrade to one of these or later. If upgrading is not immediately possible, restrict instance access to fully trusted users, disable or remove AI agent workflows that use the computer-use package, and run the n8n process under a dedicated low-privilege user account. These workarounds do not fully remediate the risk and are short-term measures only.