n8n
CVE-2025-61914
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain workflow-creation access to n8n
-
DeliveryCreate workflow with 'Respond to Webhook' node returning malicious HTML
-
ExploitScript escapes iframe sandbox into top-level editor
-
ExecutionExecute JS in victim's authenticated session
-
ImpactRead/modify/delete workflows or exfiltrate data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an account with workflow creation/modification permissions on the n8n instance and use of the 'Respond to Webhook' node configured to return attacker-controlled HTML containing executable scripts; the vulnerability is the failure to keep that response within the iframe sandbox introduced in v1.103.0. A victim must render/view the webhook response in the editor context (UI:R) for the payload to fire. Limiting factors: this is not remote-unauthenticated - it is gated behind workflow-creation privileges, so instances that restrict workflow creation to trusted users are largely unaffected; multi-tenant deployments allowing untrusted users to author workflows are the realistic risk surface. The documented workarounds (restrict workflow privileges to trusted users, avoid untrusted HTML in the node, or filter responses via a reverse proxy/HTML sanitizer) directly neutralize the required conditions. |
| Impact | This is a moderate, authenticated client-side vulnerability rather than a top-tier emergency. The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N, base 5.4) is internally consistent with the advisory: exploitation requires an attacker who already holds workflow-creation privileges (PR:L) and requires a victim to view the malicious webhook response in the editor context (UI:R), with a scope change (S:C) reflecting the escape from the intended iframe sandbox into the top-level n8n editor window. The low confidentiality/integrity impact (C:L/I:L, A:N) aligns with the fact that session cookies are HttpOnly and cannot be directly stolen, though the advisory notes CSRF-like abuse of the authenticated session (reading/modifying/deleting workflows, inserting exfiltration logic). Signals point toward low real-world urgency: EPSS is 0.24% (14th percentile), there is no CISA KEV listing, and no public exploit code was identified, so this is a high-visibility-but-low-active-risk issue. No SSVC decision data was provided in the input. The principal limiting factor - that the attacker must already be a semi-trusted user with workflow-creation rights - means genuine risk concentrates in multi-tenant or shared n8n instances that let untrusted users build workflows. |
| Exploit ScenarioDerived | In a shared n8n instance, a low-privileged but malicious user with workflow-creation rights builds a workflow whose 'Respond to Webhook' node returns HTML containing an executable script. When the webhook response is rendered, the script executes in the top-level n8n editor window instead of the intended sandbox, running JavaScript in the victim's authenticated session to read or tamper with other users' workflows. No public exploit code was identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 13, 2026
Stored cross-site scripting in the n8n workflow automation platform (versions prior to 1.114.0) allows an authenticated user with workflow creation or modification privileges to inject executable scripts through the "Respond to Webhook" node, which then escape the iframe sandbox that n8n introduced in version 1.103.0 and execute in the top-level window of the n8n editor. Because the payload runs in the context of the victim's authenticated editor session, an attacker can read sensitive workflow data and execution history, modify or delete workflows, or insert malicious workflow logic and exfiltration steps, even though the n8n-auth session cookie is HttpOnly and cannot be directly stolen. The vulnerability is rated CVSS 5.4 (AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N), is not known to be actively exploited, and has no public exploit identified at time of analysis, with a low EPSS score of 0.24% (14th percentile); vendor-released patch: 1.114.0.
RemediationAI
Upgrade n8n to version 1.114.0 or later, the release in which the vendor patched this issue (GitHub advisory GHSA-58jc-rcg5-95f3); this is the primary and only complete fix, and upgrading must be accompanied by re-validation that no already-stored malicious "Respond to Webhook" responses persist in existing workflows. Where immediate upgrading is not possible, n8n's documented workarounds are: restrict workflow creation and modification privileges to trusted users only, which directly removes the low-privileged authoring capability the vulnerability depends on (trade-off: it blocks legitimate self-service automation for less-trusted teams); avoid returning untrusted HTML from the "Respond to Webhook" node, which requires auditing and constraining existing workflows and may break legitimate HTML-returning integrations; and place an external reverse proxy or HTML sanitizer in front of webhook responses to strip executable scripts, which adds infrastructure complexity and can break workflows expecting raw HTML or JavaScript-bearing responses. No public exploit code or active exploitation is known, and EPSS is low at 0.24%, so patching can be scheduled with normal change-management cadence rather than treated as an emergency, though restricting workflow-authoring privileges is a low-cost interim control regardless of timing.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
n8n is an open-source, Node.js-based workflow automation platform in which users build flows from nodes; the "Respond to Webhook" node returns attacker- or user-controlled content to the caller of an n8n webhook endpoint. The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation / Cross-Site Scripting): starting in version 1.103.0 n8n attempted to isolate webhook response rendering inside an iframe sandbox, but HTML responses containing executable scripts could still be rendered in the top-level editor window rather than inside that sandbox, defeating the mitigation and creating a stored XSS condition. The affected CPE is cpe:2.3:a:n8n:n8n:*:*:*:*:*:node.js:*:* (all node.js distributions before 1.114.0), and the package is distributed as npm/n8n. The assessed CVSS vector AV:N/AC:L/PR:L/UI:R/S:C indicates network-reachable exploitation, low privileges required, mandatory victim interaction, and a scope change because the injected script operates in the browser context of the n8n editor rather than the sandboxed response frame.
Know when N8n gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Attacker needs workflow-creation rights (PR:L) and a victim viewing the response (UI:R); sandbox escape into the editor is a scope change (S:C) with limited C/I and no availability impact.
Primary rating from NVD.
CVSS VectorNVD
DescriptionNVD
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Affected Products (CPE)NVD
Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation
n8n workflow automation (through 1.121.2) allows authenticated users to execute arbitrary code via the n8n service, with
n8n workflow automation (1.65.0 to 1.121.0) allows unauthenticated file access through form-based workflows. A critical
n8n has a fifth critical RCE vulnerability (CVSS 9.9) in the Expression evaluator, enabling code execution through craft
Authenticated users who can create or modify an n8n workflow can achieve remote code execution on the n8n host by abusin
A prototype pollution vulnerability in the XML and GSuiteAdmin nodes of n8n workflow automation platform allows authenti
An authenticated user with workflow creation or modification privileges in n8n workflow automation platform can exploit
n8n-workflows Main Commit ee25413 allows attackers to execute a directory traversal via the download_workflow function w
Second-order expression injection in n8n workflow automation before 2.10.1/2.9.3/1.123.22. Crafted workflow data trigger
An arbitrary file upload vulnerability in the Chat Trigger component of N8N v1.95.3, v1.100.1, and v1.101.1 allows attac
Authenticated n8n users can hijack administrator accounts when LDAP authentication is enabled by manipulating their LDAP
The n8n package 0.218.0 for Node.js allows Escalation of Privileges. Rated high severity (CVSS 8.8), this vulnerability
NVD
CVE.org
EPSS
GitHub
Exploit-DB