AgentbeamBeta
AI agent vulnerability · n8n

CVE-2026-56357: n8n: Webhook Forgery on Github Webhook Trigger

mediumCVSS 4.0 6.3 · 3.1 4.0GHSA-mqpr-49jj-32rc

The GitHub Webhook Trigger node in n8n did not verify GitHub's HMAC-SHA256 signature. Anyone who knows the webhook URL can send unsigned POST requests and start the workflow with data of their choice. Fixed in n8n 1.123.15 and 2.5.0.

Published Feb 26, 2026 · Updated Jul 18, 2026 · Analysis Nov 8, 2026

What an attacker can do

GitHub signs each webhook delivery with HMAC-SHA256 so the receiver can tell real events from forged ones. The n8n GitHub Webhook Trigger node never checked that signature (CWE-290). The webhook URL was then the only secret. A party who learns it can post a fake push, issue or pull request event, and the workflow runs with the attacker's payload as input.

The attacker needs only the URL and network access. The high attack complexity in CVSS 3.1 reflects that the URL has to be known. URLs can leak through logs, repository settings, screenshots or shared workflow exports.

What the attacker gets depends on the workflow. Forged events can start deployments, create tickets, post messages or feed agent steps with text the attacker wrote. The advisory rates integrity impact as low on its own, but a downstream step that trusts the event data can raise the real damage.

Who is affected

npm package n8n, versions before 1.123.15 on the 1.x line, and 2.0.0 up to but not including 2.5.0. Only workflows that use the GitHub Webhook Trigger node are affected. Check the version:

npm ls -g n8n

In Docker, check the image tag. List workflows that use the GitHub trigger in the n8n UI.

n8n

Ecosystem
npm
Affected
< 1.123.15
Fixed in
1.123.15
Check
npm ls n8n

n8n

Ecosystem
npm
Affected
>= 2.0.0, < 2.5.0
Fixed in
2.5.0
Check
npm ls n8n

How to fix it

Upgrade to n8n 1.123.15 on the 1.x line, or to 2.5.0 or later on the 2.x line.

npm install -g [email protected]

The advisory offers two short-term steps that do not fully remove the risk:

  • Limit workflow creation and editing to fully trusted users.
  • Limit network access to the n8n webhook endpoint to the known GitHub webhook IP ranges.

How to tell if you were hit

In n8n execution history, look at runs of workflows that start with the GitHub Webhook Trigger and check whether the source addresses match GitHub's webhook ranges. Compare execution times with the delivery log in the GitHub repository's webhook settings. Runs that GitHub does not show as delivered point to forged events. Check reverse proxy logs for POSTs to the webhook path from other addresses.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Impact

An attacker who knows the webhook URL of a workflow using the GitHub Webhook Trigger node could send unsigned POST requests and trigger the workflow with arbitrary data. The node did not implement the HMAC-SHA256 signature verification that GitHub provides to authenticate webhook deliveries, allowing any party to spoof GitHub webhook events.

Patches

The issue has been fixed in n8n versions 2.5.0 and 1.123.15. 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:

  • Limit workflow creation and editing permissions to fully trusted users only.
  • Restrict network access to the n8n webhook endpoint to known GitHub webhook IP ranges.

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

Credited to simonkoeck.

Questions

Which n8n versions fix CVE-2026-56357?

1.123.15 for the 1.x line, and 2.5.0 for the 2.x line. Versions 2.0.0 up to 2.5.0 are vulnerable.

Does the attacker need credentials for CVE-2026-56357?

No account is needed, but the attacker has to know the workflow's webhook URL. The node did not check GitHub's signature, so any POST starts the workflow.

Can I restrict the webhook to GitHub addresses instead of upgrading?

That is a temporary mitigation named by the advisory, along with limiting who can edit workflows. It does not fully fix the issue.

Is CVE-2026-56357 exploited in the wild?

The sources do not say so. The EPSS score in this entry is 0.0031.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More n8n vulnerabilities

All n8n entries