7.0high
n8n: Same-Origin XSS in Respond to Webhook Node
- Severity
- 7.0high CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.22% (higher than 12% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-v733-mwr6-fgcm
Description
n8n is an open source workflow automation platform. Prior to 1.123.55, 2.25.7, and 2.26.2, an authenticated user with workflow edit access could configure a Respond to Webhook node to serve binary content with an attacker-controlled Content-Type. The binary response path bypassed the central Content-Security-Policy sandbox header, allowing a public webhook to execute JavaScript in the n8n origin when visited by an authenticated user, with access to that user's session. This vulnerability is fixed in 1.123.55, 2.25.7, and 2.26.2.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| n8n-io n8n | < 1.123.55, >= 2.0.0-rc.0, < 2.25.7, >= 2.26.0, < 2.26.2 | CVE List |
| n8n (npm) | before 1.123.55, from 2.26.0 before 2.26.2, from 2.0.0-rc.0 before 2.25.7 | GitHub Advisory Database |
| n8n n8n | before 1.123.55, from 2.0.0 before 2.25.7, from 2.26.0 before 2.26.2 | NVD |
All scores
| GitHub_M | 7.0high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N |
| GitHub | 7.6high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N |
| NVD | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
n8n is an open source workflow automation platform. Prior to 1.123.55, 2.25.7, and 2.26.2, an authenticated user with workflow edit access could configure a Respond to Webhook node to serve binary content with an attacker-controlled Content-Type. The binary response path bypassed the central Content-Security-Policy sandbox header, allowing a public webhook to execute JavaScript in the n8n origin when visited by an authenticated user, with access to that user's session. This vulnerability is fixed in 1.123.55, 2.25.7, and 2.26.2.
GitHub Advisory Database
Impact
An authenticated user with workflow edit access could configure a Respond to Webhook node to serve binary content with an attacker-controlled Content-Type. The binary response path bypassed the central Content-Security-Policy sandbox header, allowing a public webhook to execute JavaScript in the n8n origin when visited by an authenticated user, with access to that user's session.
Patches
The issue has been fixed in n8n versions 1.123.55, 2.25.7, and 2.26.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:
- Limit workflow creation and editing permissions to fully trusted users only.
- Disable the Respond to Webhook node by adding
n8n-nodes-base.respondToWebhookto theNODES_EXCLUDEenvironment variable.
These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.
NVD (es)
n8n es una plataforma de automatización de flujos de trabajo de código abierto. Antes de 1.123.55, 2.25.7 y 2.26.2, un usuario autenticado con acceso de edición de flujos de trabajo podía configurar un nodo Respond to Webhook para servir contenido binario con un Content-Type controlado por el atacante. La ruta de respuesta binaria eludía el encabezado sandbox central de Content-Security-Policy, permitiendo que un webhook público ejecutara JavaScript en el origen de n8n cuando era visitado por un usuario autenticado, con acceso a la sesión de ese usuario. Esta vulnerabilidad está corregida en 1.123.55, 2.25.7 y 2.26.2.
References
| https://github.com/n8n-io/n8n/security/advisories/GHSA-v733-mwr6-fgcm | mitigation, vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-54301 | advisory | |
| https://github.com/n8n-io/n8n | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-54301 changed 2026-06-24 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-v733-mwr6-fgcm changed 2026-07-20 | CC-BY-4.0 |
| NVD | CVE-2026-54301 changed 2026-10-26 | Public domain |