CVE-2025-52554: N8n N8n Is Vulnerable To Improper Vulnerability
MODERATECVE-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
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).
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.
npm install n8n@1.99.1
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
CVE-2025-52554 Affected N8n Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
n8n
|
npm |
< 1.99.1
|
1.99.1
|
References
Frequently Asked Questions
What is CVE-2025-52554?
Which N8n versions are affected?
What version fixes CVE-2025-52554?
Is n8n affected?
What is the CVSS score of CVE-2025-52554?
What CWE is associated with CVE-2025-52554?
How can I check npm dependencies for CVE-2025-52554?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}