Skip to content
HighVulnerability

GHSA-x5vx-c2c8-m3w9: n8n: AI Agents Project Viewer Privilege Escalation via run_node_tool

Published
Record updated
View JSON
Affected
  • n8n < 2.29.8, fixed in 2.29.8, released July 8, 2026, 14 days before disclosure
  • n8n >= 2.30.0, < 2.30.1, fixed in 2.30.1, released July 8, 2026, 14 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.6%

Summary

A user with the read-only Project Viewer role in n8n's AI Agents feature could escalate privileges by chatting with an agent that has node tools enabled. The run_node_tool path was authorized only by the agent:execute scope, so it ran nodes with project credentials without checking the requesting user's node-execution or credential-access rights. On instances with Execute Command or SSH enabled, this could extend to arbitrary command execution on the n8n host.

Mitigation

The issue is fixed in n8n versions 2.29.8 and 2.30.1; users should upgrade to one of these or later. If upgrading is not immediately possible, administrators may temporarily remove `agents` from the `N8N_ENABLED_MODULES` environment variable, restrict project membership to fully trusted users, and disable command-execution nodes such as Execute Command and SSH. The source states these workarounds do not fully remediate the risk.