GHSA-gq57-v332-7666

Suggest an improvement
Source
https://github.com/advisories/GHSA-gq57-v332-7666
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/07/GHSA-gq57-v332-7666/GHSA-gq57-v332-7666.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-gq57-v332-7666
Aliases
Published
2025-07-03T20:23:35Z
Modified
2025-07-03T21:50:48Z
Severity
  • 4.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N CVSS Calculator
  • 4.9 (Medium) CVSS_V4 - 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 CVSS Calculator
Summary
n8n is vulnerable to Improper Authorization through its `/stop` endpoint
Details

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.

Database specific
{
    "severity": "MODERATE",
    "nvd_published_at": "2025-07-03T20:15:23Z",
    "github_reviewed_at": "2025-07-03T20:23:35Z",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-862"
    ]
}
References

Affected packages

npm / n8n

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.99.1