CVE-2025-61914: n8n's Possible Stored XSS in "Respond to Webhook" Node May Execute Outside iframe Sandbox

Published Dec 26, 2025
·
Updated

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.

Other sources

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.

— MITRE

Affected Software

2 affected componentsFixes available
npm/n8n<1.114.0
1.114.0
n8n N8n Node.js<1.114.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/n8n to a version that resolves this vulnerability.

    Fixed in 1.114.0
  2. Upgrade

    Upgrade n8n to a version that resolves this vulnerability.

    Fixed in 1.114.0
  3. Compensating control

    Restrict workflow creation and modification privileges to trusted users only.

  4. Compensating control

    Avoid using untrusted HTML responses in the “Respond to Webhook” node.

  5. Compensating control

    Use an external reverse proxy or HTML sanitizer to filter responses that include executable scripts.

Event History

Dec 26, 2025
Advisory Published
via GitHub·05:30 PM
Data Sourced
via GitHub·05:30 PM
DescriptionSeverityWeaknessAffected Software
CVE Published
via MITRE·09:48 PM
Data Sourced
via MITRE·09:48 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:15 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-61914?

CVE-2025-61914 is classified as a stored Cross-Site Scripting (XSS) vulnerability.

2

How does CVE-2025-61914 occur in n8n?

CVE-2025-61914 occurs when the 'Respond to Webhook' node returns HTML content containing executable scripts.

3

What versions of n8n are affected by CVE-2025-61914?

CVE-2025-61914 affects n8n versions prior to 1.114.0.

4

How can I fix CVE-2025-61914?

To fix CVE-2025-61914, upgrade n8n to version 1.114.0 or later.

5

What impact does CVE-2025-61914 have on users?

CVE-2025-61914 can lead to unwanted execution of scripts in the user's top-level window, posing potential security risks.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203