AgentbeamBeta
AI agent vulnerability · n8n

GHSA-664h-gpgq-h6xx: n8n: Wrong OAuth Scope on Evaluation Test Runs Endpoints

mediumCVSS 4.0 5.3 · 3.1 5.4

n8n checked the wrong permission scope on three evaluation test run endpoints. A user with only the project:viewer role could start, cancel and delete evaluation runs for workflows they can merely read. Only instances using Advanced Permissions (Enterprise or Cloud) with projects and viewer roles are affected. Fixed in n8n 1.123.55, 2.25.7 and 2.26.2.

Published Jun 17, 2026 · Analysis Nov 9, 2026

What an attacker can do

The evaluation test runs controller authorized three state-changing actions with the workflow:read scope instead of workflow:execute. The actions are starting a new evaluation test run, cancelling a run in progress, and deleting run records.

A viewer in a project can therefore do things the viewer role is meant to forbid. Starting a run executes the workflow's evaluation, which can consume resources, call connected services and use the stored credentials of the workflow. Cancelling a run disrupts evaluation work in progress, and deleting run records removes the history teams use to compare workflow quality.

The attacker needs an authenticated account with project:viewer on the project. No user interaction is needed. The CVSS vector shows low integrity and availability impact and no confidentiality impact. The advisory says the flaw only matters where Advanced Permissions are enabled and viewer roles are in use. A single-user community instance has no viewers to abuse it.

Who is affected

Affected npm n8n versions: below 1.123.55; 2.0.0-rc.0 up to but not including 2.25.7; and 2.26.0 up to but not including 2.26.2. Only instances with Advanced Permissions (Enterprise or Cloud) that use projects and viewer roles are at risk.

npm ls n8n
n8n --version

For Docker, check the image tag. The version is also in the n8n UI under Help, About.

n8n

Ecosystem
npm
Affected
< 1.123.55
Fixed in
1.123.55
Check
npm ls n8n

n8n

Ecosystem
npm
Affected
>= 2.26.0, < 2.26.2
Fixed in
2.26.2
Check
npm ls n8n

n8n

Ecosystem
npm
Affected
>= 2.0.0-rc.0, < 2.25.7
Fixed in
2.25.7
Check
npm ls n8n

How to fix it

Upgrade to n8n 1.123.55, 2.25.7 or 2.26.2, or later, whichever matches your release line:

npm install [email protected]

For Docker, pull the matching image tag. The advisory gives two short-term mitigations that it says do not fully remediate the risk: restrict project membership to fully trusted users, and avoid granting viewer access to projects that hold sensitive workflows.

How to tell if you were hit

Review evaluation test run history for runs started, cancelled or deleted by accounts that hold only the project:viewer role. Check n8n's instance logs and audit data for those user IDs on the evaluation test runs routes. Missing run records for workflows where evaluations should exist can mean a viewer deleted them. Compare against the project member list.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Impact

Three mutating endpoints in the evaluation test runs controller authorized state-changing actions using workflow:read instead of the action-appropriate workflow:execute scope. An authenticated user with project:viewer role on a project could start new evaluation test runs, cancel in-flight runs, and delete run records for workflows they only had read access to.

This issue only affects instances with Advanced Permissions (Enterprise/Cloud) where projects and viewer roles are in use.

Patches

The issue has been fixed in n8n versions 1.123.55, 2.25.7, and 2.26.2. Users should upgrade to one of these versions or later to remediate the vulnerability.

Workarounds

If upgrading is not immediately possible, administrators should consider the following temporary mitigations:

  • Restrict project membership to fully trusted users only.
  • Avoid granting viewer access to projects containing sensitive workflows.

These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.

Credited to YLChen-007.

Questions

Does GHSA-664h-gpgq-h6xx have a CVE?

No CVE id is assigned in the advisory. It is tracked by the GitHub advisory id only.

Am I affected if I use n8n community edition?

The advisory says only instances with Advanced Permissions (Enterprise or Cloud) where projects and viewer roles are in use are affected.

What can a viewer do with it?

Start new evaluation test runs, cancel runs in progress, and delete run records for workflows where they only have read access.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More n8n vulnerabilities

All n8n entries