Impact
The source control push endpoint took the file paths and their status from the request payload. A project-scoped user could therefore name files belonging to projects they had no access to, and push a deletion of another project's workflows and credentials. The patch derives the push targets from the server-side status computed for the requesting user, so the request payload cannot widen the push.
The attack requires the Source Control (Environments) enterprise feature to be licensed, enabled, and connected to a remote repository.
Patches
The issue has been fixed in n8n versions 1.123.76, 2.37.7, and 2.38.2. Users should upgrade to one of these versions or later to remediate the vulnerability.
Workarounds
If upgrading is not immediately possible, administrators should consider the following temporary mitigations:
- Restrict n8n instance access to fully trusted users only.
- Audit project memberships and revoke the project-admin role from any users who do not require it.
- Temporarily disable or disconnect the Source Control (Environments) feature until the instance is patched.
These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.
Impact
The source control push endpoint took the file paths and their status from the request payload. A project-scoped user could therefore name files belonging to projects they had no access to, and push a deletion of another project's workflows and credentials. The patch derives the push targets from the server-side status computed for the requesting user, so the request payload cannot widen the push.
The attack requires the Source Control (Environments) enterprise feature to be licensed, enabled, and connected to a remote repository.
Patches
The issue has been fixed in n8n versions 1.123.76, 2.37.7, and 2.38.2. Users should upgrade to one of these versions or later to remediate the vulnerability.
Workarounds
If upgrading is not immediately possible, administrators should consider the following temporary mitigations:
These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.