{"id":"CVE-2026-54301","aliases":["CVE-2026-54301","GHSA-v733-mwr6-fgcm"],"related":[],"kind":"vulnerability","state":"published","title":"n8n: Same-Origin XSS in Respond to Webhook Node","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"## Impact\nAn 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.\n\n## Patches\nThe 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.\n\n## Workarounds\nIf upgrading is not immediately possible, administrators should consider the following temporary mitigations:\n- Limit workflow creation and editing permissions to fully trusted users only.\n- Disable the Respond to Webhook node by adding `n8n-nodes-base.respondToWebhook` to the `NODES_EXCLUDE` environment variable.\n\nThese workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-06-16T19:00:31.000Z","modified":"2026-10-26T11:10:00.157Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":7,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":7,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N","score":7.6,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 1.123.55","status":"affected"},{"version":">= 2.0.0-rc.0, < 2.25.7","status":"affected"},{"version":">= 2.26.0, < 2.26.2","status":"affected"}],"vendor":"n8n-io","product":"n8n","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.123.55"}],"ecosystem":"npm","package":"n8n","purl":"pkg:npm/n8n","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.26.0","status":"affected","fixed":"2.26.2"}],"ecosystem":"npm","package":"n8n","purl":"pkg:npm/n8n","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.0.0-rc.0","status":"affected","fixed":"2.25.7"}],"ecosystem":"npm","package":"n8n","purl":"pkg:npm/n8n","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.123.55"},{"status":"affected","introduced":"2.0.0","fixed":"2.25.7"},{"status":"affected","introduced":"2.26.0","fixed":"2.26.2"}],"vendor":"n8n","product":"n8n","cpe":"cpe:2.3:a:n8n:n8n:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/n8n-io/n8n/security/advisories/GHSA-v733-mwr6-fgcm","tags":["mitigation","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54301","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/n8n-io/n8n","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-06-24T14:00:06.000Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-54301","url":"https://www.cve.org/CVERecord?id=CVE-2026-54301","licence":"CVE Terms of Use","modified":"2026-06-24T14:00:17.206Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-v733-mwr6-fgcm","url":"https://github.com/advisories/GHSA-v733-mwr6-fgcm","licence":"CC-BY-4.0","modified":"2026-07-20T14:00:25.511Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-54301","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54301","licence":"Public domain","modified":"2026-10-26T11:10:00.157Z"}],"updatedAt":"2026-11-25T22:59:25.483Z","epss":{"score":0.00217,"percentile":0.12883,"date":"2026-12-01T12:00:22.000Z"}}