INCIDENT MAP

Browse / AI Framework and Platform Flaws / CVE-2025-61914

n8n's Possible Stored XSS in "Respond to Webhook" Node May Execute Outside iframe Sandbox

CVE-2025-61914 · 2025-12-26 high

Class
AI Framework and Platform Flaws (filed by a model that read the advisory)
Technique
Cross-site scripting
Affected
n8n (npm)
Gets past
Sandbox or allowlist
CVSS
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N
EPSS
0.2% chance of exploitation in 30 days

How it works, in short

HTML returned by the Respond to Webhook node escapes the iframe sandbox meant to contain it, so injected scripts run in the editor's top-level window. (Our summary, written by a model. The source text is below.)

Details

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:

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.

References

Source: GitHub Advisory Database, used under CC BY 4.0.