Skip to content
Medium 5.3

Workflow Activation Allows Trigger Nodes to Use Credentials the Publisher Cannot Access

GHSA-h59h-rf6m-7jp5 First seen on SecPulse

Summary

Impact

When a workflow was activated, n8n registered its trigger nodes with the connected services using the credentials set on those nodes. Activation did not check that the user publishing the workflow had access to those credentials. A member who knew the ID of another user's credential could...

Affected packages

PackageAffected → Fixed
npmn8n
< 1.123.96→ >= 1.123.96
npmn8n
< 3.2.2→ >= 3.2.2
npmn8n
< 2.48.3→ >= 2.48.3
npmn8n
< 2.47.6→ >= 2.47.6
Original description The description as published by the source.

Impact

When a workflow was activated, n8n registered its trigger nodes with the connected services using the credentials set on those nodes. Activation did not check that the user publishing the workflow had access to those credentials. A member who knew the ID of another user's credential could activate a workflow whose trigger used it. n8n then created or deleted webhooks on the connected service with that credential's privileges, and delivered events from resources the member chose to the member's workflow.

Patches

The issue has been fixed in n8n versions 1.123.96, 2.47.6, 2.48.3 and 3.2.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 active workflows for trigger nodes that use credentials owned by another user, and deactivate any that are not expected.
  • Review the webhooks registered on connected services such as GitLab and GitHub, and remove any that are not expected.

These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.

Source: GitHub Repository Security Advisories (Game のスタック) GitHub Advisory OSV

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details