N8n
n8n - Incorrect OAuth Scope Validation in Workflow Test Run Endpoint
n8n before 1.123.55, 2.25.7, and 2.26.2 contains an authorization bypass in the POST /workflows/{workflowId}/test-runs/new endpoint, which authorizes access using the workflow:read scope instead of workflow:execute. An authenticated user with read-only access to a workflow can trigger a real evaluation test run, causing the workflow to execute via the internal workflow runner and resulting in unintended outbound API calls, data mutations, or other side effects in connected downstream systems. The issue primarily affects instances using the Evaluations feature where RBAC project roles grant workflow:read without workflow:execute.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.123.55
Fixed in 1.123.55
- >= 2.26.0, < 2.26.2
Fixed in 2.26.2
- >= 2.0.0-rc.0, < 2.25.7
Fixed in 2.25.7
Mitigation
Upgrade n8n to 1.123.55 or later.
Upgrade n8n to 2.26.2 or later.
Upgrade n8n to 2.25.7 or later.
References
- Vendor advisory github.com/n8n-io/n8n/security/advisories/GHSA…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.