CVE-2025-52554: N8n N8n Is Vulnerable To Improper Vulnerability

MODERATE
Advisory Identifier: GHSA-gq57-v332-7666
CVSS 4.3
CWE-862
Published
Advisory Summary

CVE-2025-52554 is a MODERATE (CVSS 4.3) n8n is vulnerable to improper vulnerability (CWE-862: Missing Authorization) affecting N8n libraries in the npm ecosystem. The issue involves n8n is vulnerable to improper authorization through its `/stop` endpoint. Remediation is available by upgrading affected packages to version 1.99.1.

CVE-2025-52554 at a Glance

CVE Identifier CVE-2025-52554
GHSA Identifier GHSA-gq57-v332-7666
Severity MODERATE
CVSS v3.1 Base Score 4.3
CWE Classification CWE-862: Missing Authorization
Affected Product N8n
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 4.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2025-52554

To remediate this vulnerability, upgrade all affected N8n dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

n8n fixed: 1.99.1
npm install n8n@1.99.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls n8n

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2025-52554, inspect your project dependencies using npm:

npm ls n8n

Analyze the terminal output to locate any version of N8n in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.99.1), your application is affected.

Note: The npm ls n8n command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-862: Missing Authorization, where the product does not perform an authorization check when an actor attempts to access a resource or perform an action. In N8n, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

## 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.

CVE-2025-52554 Affected N8n Versions

1 component(s)
Fixed Versions:
1.99.1
Product / Package Ecosystem Affected Versions Fixed Version
n8n
npm
< 1.99.1
1.99.1

References

Frequently Asked Questions

What is CVE-2025-52554?
CVE-2025-52554 is a security vulnerability in N8n involving n8n is vulnerable to Improper Authorization through its `/stop` endpoint under CWE-862: Missing Authorization.
Which N8n versions are affected?
Affected versions include releases prior to 1.99.1 across affected packages: n8n.
What version fixes CVE-2025-52554?
Upgrading to 1.99.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is n8n affected?
Yes, n8n is affected in releases prior to 1.99.1. Upgrade your dependency to 1.99.1 or later.
What is the CVSS score of CVE-2025-52554?
CVE-2025-52554 has a CVSS v3.1 base score of 4.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N.
What CWE is associated with CVE-2025-52554?
CVE-2025-52554 is classified under CWE-862: Missing Authorization (The product does not perform an authorization check when an actor attempts to access a resource or perform an action.).
How can I check npm dependencies for CVE-2025-52554?
Run the dependency tree command: 'npm ls n8n'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-gq57-v332-7666",
  "modified" : "2025-07-03T21:50:48Z",
  "published" : "2025-07-03T20:23:35Z",
  "aliases" : [ "CVE-2025-52554" ],
  "summary" : "n8n is vulnerable to Improper Authorization through its `/stop` endpoint",
  "details" : "## Summary\n\nAn 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.\n\n### Impact\n\nThis 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.\n\n**Who is impacted:**\n- Environments where multiple users with varying trust levels share access to the same n8n instance.\n- All users running long-running or time-sensitive workflows (e.g., using the `wait` node).\n\nAn attacker with authenticated access can exploit this flaw to:\n- Disrupt other users’ workflow executions.\n- Cause denial of service for business-critical automations.\n\n### Patches\n\nThe issue was addressed in https://github.com/n8n-io/n8n/pull/16405. Users should upgrade to version >= 1.99.1.\n\nUsers should upgrade to this version or later to ensure proper authorization checks are enforced before stopping workflow executions.\n\n### Workarounds\n\nTo mitigate this issue without upgrading:\n- Restrict access to the `/rest/executions/:id/stop` endpoint via reverse proxy or API gateway.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "n8n"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.99.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/n8n-io/n8n/security/advisories/GHSA-gq57-v332-7666"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-52554"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/n8n-io/n8n/pull/16405"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/dudanogueira/n8n/commit/ca2f90c7fbaa1d661ade2f45d587d9469bc287e1"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/n8n-io/n8n/commit/e5edc60e344924230baafb11fa1f0af788e9ca9a"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/n8n-io/n8n"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-862" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-07-03T20:23:35Z",
    "nvd_published_at" : "2025-07-03T20:15:23Z"
  }
}