7.3high
n8n's Possible Stored XSS in "Respond to Webhook" Node May Execute Outside iframe Sandbox
- Severity
- 7.3high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.26% (higher than 18% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-58jc-rcg5-95f3
Description
n8n is an open source workflow automation platform. Prior to version 1.114.0, a stored Cross-Site Scripting (XSS) vulnerability may occur in n8n when using the “Respond to Webhook” node. When this node responds with HTML content containing executable scripts, the payload may execute directly in the top-level window, rather than within the expected sandbox introduced in version 1.103.0. This behavior can enable a malicious actor with workflow creation permissions to execute arbitrary JavaScript in the context of the n8n editor interface. This issue has been patched in version 1.114.0. Workarounds for this issue involve restricting workflow creation and modification privileges to trusted users only, avoiding use of untrusted HTML responses in the “Respond to Webhook” node, and using an external reverse proxy or HTML sanitizer to filter responses that include executable scripts.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| n8n-io n8n | < 1.114.0 | CVE List |
| n8n (npm) | before 1.114.0 | GitHub Advisory Database |
| n8n n8n | before 1.114.0 | NVD |
All scores
| GitHub_M | 7.3high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N |
| GitHub | 7.3high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A: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 total.
What each source says
CVE List
n8n is an open source workflow automation platform. Prior to version 1.114.0, a stored Cross-Site Scripting (XSS) vulnerability may occur in n8n when using the “Respond to Webhook” node. When this node responds with HTML content containing executable scripts, the payload may execute directly in the top-level window, rather than within the expected sandbox introduced in version 1.103.0. This behavior can enable a malicious actor with workflow creation permissions to execute arbitrary JavaScript in the context of the n8n editor interface. This issue has been patched in version 1.114.0. Workarounds for this issue involve restricting workflow creation and modification privileges to trusted users only, avoiding use of untrusted HTML responses in the “Respond to Webhook” node, and using an external reverse proxy or HTML sanitizer to filter responses that include executable scripts.
GitHub Advisory Database
Summary
A stored Cross-Site Scripting (XSS) vulnerability may occur in n8n when using the “Respond to Webhook” node. When this node responds with HTML content containing executable scripts, the payload may execute directly in the top-level window, rather than within the expected sandbox introduced in version 1.103.0.
This behavior can enable a malicious actor with workflow creation permissions to execute arbitrary JavaScript in the context of the n8n editor interface.
While session cookies (n8n-auth) are marked HttpOnly and cannot be directly exfiltrated, the vulnerability can facilitate Cross-Site Request Forgery (CSRF)-like actions from within the user’s authenticated session, potentially allowing:
- Unauthorized reading of sensitive workflow data or execution history.
- Unauthorized modification or deletion of workflows.
- Insertion of malicious workflow logic or external data exfiltration steps.
n8n instances that allow untrusted users to create workflows are particularly impacted.
Patches
The vulnerability has been patched in v.1.114.0.
Workarounds
- Restrict workflow creation and modification privileges to trusted users only.
- Avoid using untrusted HTML responses in the “Respond to Webhook” node.
- Use an external reverse proxy or HTML sanitizer to filter responses that include executable scripts.
NVD (es)
n8n es una plataforma de automatización de flujos de trabajo de código abierto. Antes de la versión 1.114.0, puede ocurrir una vulnerabilidad de cross-site scripting (XSS) almacenado en n8n al usar el nodo 'Respond to Webhook'. Cuando este nodo responde con contenido HTML que contiene scripts ejecutables, la carga útil puede ejecutarse directamente en la ventana de nivel superior, en lugar de dentro del sandbox esperado introducido en la versión 1.103.0. Este comportamiento puede permitir a un actor malicioso con permisos de creación de flujos de trabajo ejecutar JavaScript arbitrario en el contexto de la interfaz del editor de n8n. Este problema ha sido parcheado en la versión 1.114.0. Las soluciones alternativas para este problema implican restringir los privilegios de creación y modificación de flujos de trabajo solo a usuarios de confianza, evitar el uso de respuestas HTML no confiables en el nodo 'Respond to Webhook', y usar un proxy inverso externo o un saneador de HTML para filtrar las respuestas que incluyen scripts ejecutables.
References
| https://github.com/n8n-io/n8n/security/advisories/GHSA-58jc-rcg5-95f3 | patch, vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2025-61914 | advisory | |
| https://github.com/n8n-io/n8n | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-61914 changed 2025-12-26 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-58jc-rcg5-95f3 changed 2025-12-27 | CC-BY-4.0 |
| NVD | CVE-2025-61914 changed 2026-10-13 | Public domain |