Skip to main content

n8n CVE-2025-61914

MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2025-12-26 security-advisories@github.com
5.4
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain workflow-creation access to n8n
  2. Delivery
    Create workflow with 'Respond to Webhook' node returning malicious HTML
  3. Exploit
    Script escapes iframe sandbox into top-level editor
  4. Execution
    Execute JS in victim's authenticated session
  5. Impact
    Read/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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

npm n8n fix: 1.114.0

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

NVD PRIMARY 5.4 MEDIUM
AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
vuln.today AI 5.4 MEDIUM

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.

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

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

EPSS Score
0.2%
Top 86% exploitable
Prevalence
Medium
popular open-source workflow automation platform, common but not ubiquitous
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

27
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +27
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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

cpe:2.3:a:n8n:n8n:*:*:*:*:*:node.js:*:*

More in N8n

View all
CVE-2025-68613 HIGH POC
8.8 Dec 19

Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation

CVE-2026-21877 CRITICAL POC
9.9 Jan 08

n8n workflow automation (through 1.121.2) allows authenticated users to execute arbitrary code via the n8n service, with

CVE-2026-21858 CRITICAL POC
10.0 Jan 08

n8n workflow automation (1.65.0 to 1.121.0) allows unauthenticated file access through form-based workflows. A critical

CVE-2026-1470 CRITICAL POC
9.9 Jan 27

n8n has a fifth critical RCE vulnerability (CVSS 9.9) in the Expression evaluator, enabling code execution through craft

CVE-2025-65964 CRITICAL POC
9.4 Dec 09

Authenticated users who can create or modify an n8n workflow can achieve remote code execution on the n8n host by abusin

CVE-2026-33696 CRITICAL POC
9.4 Mar 25

A prototype pollution vulnerability in the XML and GSuiteAdmin nodes of n8n workflow automation platform allows authenti

CVE-2026-33660 CRITICAL POC
9.4 Mar 25

An authenticated user with workflow creation or modification privileges in n8n workflow automation platform can exploit

CVE-2025-55526 CRITICAL POC
9.1 Aug 26

n8n-workflows Main Commit ee25413 allows attackers to execute a directory traversal via the download_workflow function w

CVE-2026-27493 CRITICAL POC
9.0 Feb 25

Second-order expression injection in n8n workflow automation before 2.10.1/2.9.3/1.123.22. Crafted workflow data trigger

CVE-2025-56265 HIGH POC
8.8 Sep 08

An arbitrary file upload vulnerability in the Chat Trigger component of N8N v1.95.3, v1.100.1, and v1.101.1 allows attac

CVE-2026-33665 HIGH POC
8.8 Mar 25

Authenticated n8n users can hijack administrator accounts when LDAP authentication is enabled by manipulating their LDAP

CVE-2023-27563 HIGH POC
8.8 May 10

The n8n package 0.218.0 for Node.js allows Escalation of Privileges. Rated high severity (CVSS 8.8), this vulnerability

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy