Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. n8n
  4. ›
  5. CVE-2026-65015

CVE-2026-65015: n8n: AI Agents Project Viewer Privilege Escalation via run_node_tool

July 22, 2026

In n8n’s AI Agents feature, a user with the read-only Project Viewer role could escalate their privileges by chatting with an agent that has node tools enabled. The agent’s node-execution tool was authorized only by the agent:execute scope and ran nodes using the project’s credentials, without verifying that the requesting user was permitted to execute nodes or to access those credentials.

As a result, a Project Viewer could execute arbitrary tool nodes on the server and use credential secrets they were not authorized to read, gaining execution capabilities their role is intended to deny. On instances where a command- or file-capable tool node (such as Execute Command or SSH) is enabled, this could be extended to arbitrary command execution on the n8n host.

Users of the AI Agents feature who share team projects with lower-privileged members are affected.

References

  • github.com/advisories/GHSA-x5vx-c2c8-m3w9
  • github.com/n8n-io/n8n/releases/tag/n8n@2.29.8
  • github.com/n8n-io/n8n/releases/tag/n8n@2.30.1
  • github.com/n8n-io/n8n/security/advisories/GHSA-x5vx-c2c8-m3w9
  • nvd.nist.gov/vuln/detail/CVE-2026-65015
  • www.vulncheck.com/advisories/n8n-before-privilege-escalation-via-run-node-tool

Code Behaviors & Features

Detect and mitigate CVE-2026-65015 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.29.8, all versions starting from 2.30.0 before 2.30.1

Fixed versions

  • 2.29.8
  • 2.30.1

Solution

Upgrade to versions 2.29.8, 2.30.1 or above.

Impact 9.1 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L

Learn more about CVSS

Weakness

  • CWE-863: Incorrect Authorization

Source file

npm/n8n/CVE-2026-65015.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 08 Aug 2026 00:17:00 +0000.