AgentbeamBeta
AI agent vulnerability · n8n

CVE-2025-52554: n8n is vulnerable to Improper Authorization through its `/stop` endpoint

mediumCVSS 4.0 4.9 · 3.1 4.3GHSA-gq57-v332-7666

n8n before 1.99.1 lets any authenticated user stop workflow executions they do not own and that were not shared with them. The /rest/executions/:id/stop endpoint skips the ownership check that other execution endpoints apply. The result is disruption, not data theft. Upgrade n8n to 1.99.1.

Published Jul 3, 2025 · Updated Jul 10, 2025 · Analysis Nov 24, 2026

What an attacker can do

Most n8n execution endpoints scope access to the executions a user owns or can see. The /rest/executions/:id/stop endpoint did not. Per the advisory, it took the execution ID from the request and acted on it with a direct parameter reference, skipping the user-scoped authorization step.

Execution IDs are sequential, and verbose error messages partly expose them, so an attacker can guess or enumerate IDs and stop other people's running executions. The advisory points to workflows with long waits, such as those using the wait node, and to time-sensitive automations as the likely targets.

The attacker must have an account on the instance (PR:L), and the vector rates only integrity impact as low, with availability impact in the CVSS 4.0 subsequent system. There is no data exposure. The risk is highest on shared instances where users of different trust levels run business-critical automations side by side. A single-user instance gains nothing from this fix.

Who is affected

n8n on npm below 1.99.1. Instances with several users of differing trust, such as multi-team or customer-shared deployments, carry the risk. Check the version:

npm ls n8n

For Docker, read the image tag you run, or the version shown in the n8n UI under Help and About.

n8n

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

How to fix it

Upgrade n8n to 1.99.1 or later. The fix is in the project's pull request 16405, which blocks the executions controller from stopping executions the user has no access to.

npm install -g [email protected]

For Docker, pull a newer image tag and recreate the container.

The advisory's workaround, if you cannot upgrade, is to restrict access to the /rest/executions/:id/stop endpoint at a reverse proxy or API gateway.

How to tell if you were hit

Look in your reverse proxy or access logs for POST requests to /rest/executions/ paths ending in /stop, and match each against the user who owns the execution. A user who stops executions that belong to others, or a burst of stop calls with sequential IDs, is the pattern to look for.

In n8n, review executions with a cancelled or canceled status that the owner did not stop, especially for long-running or wait-node workflows.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

An authorization vulnerability was discovered in the /rest/executions/:id/stop endpoint of n8n. An authenticated user can stop workflow executions that they do not own or that have not been shared with them, leading to potential business disruption.

Impact

This is an improper authorization vulnerability. While most API methods enforce user-scoped access to workflow execution IDs, the /stop endpoint fails to do so. An attacker can guess or enumerate execution IDs (which are sequential and partially exposed via verbose error messages) and terminate active workflows initiated by other users.

Who is impacted:

  • Environments where multiple users with varying trust levels share access to the same n8n instance.
  • All users running long-running or time-sensitive workflows (e.g., using the wait node).

An attacker with authenticated access can exploit this flaw to:

  • Disrupt other users’ workflow executions.
  • Cause denial of service for business-critical automations.

Patches

The issue was addressed in https://github.com/n8n-io/n8n/pull/16405. Users should upgrade to version >= 1.99.1.

Users should upgrade to this version or later to ensure proper authorization checks are enforced before stopping workflow executions.

Workarounds

To mitigate this issue without upgrading:

  • Restrict access to the /rest/executions/:id/stop endpoint via reverse proxy or API gateway.

Credited to pfelilpe, MarcL, LucianoSorrentino95, agustedone, ffaggiani.

Questions

Which n8n version fixes CVE-2025-52554?

n8n 1.99.1. Versions below it are affected. The fix was merged through pull request 16405.

Can an attacker read my workflow data through this?

The advisory describes only stopping other users' executions. It rates confidentiality impact as none, and gives disruption of workflows and denial of service for automations as the consequence.

Does the attacker need an account?

Yes. The vector requires low privileges, so any authenticated user on the instance can try it. Anonymous visitors cannot.

What is the workaround if I cannot upgrade?

Restrict access to the /rest/executions/:id/stop endpoint through a reverse proxy or API gateway, as the advisory says. Upgrading is still the proper fix.

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