Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconIdentify internet-accessible n8n webhook verification endpoint
-
DeliveryCraft malicious URL with XSS payload in reflected query parameter
-
ExploitDeliver URL to authenticated n8n user via phishing or embedded link
-
InstallVictim clicks link while logged into n8n
-
C2Server reflects unsanitized payload into HTTP response
-
ExecuteInjected JavaScript executes in victim browser under n8n origin
-
ImpactExfiltrate session tokens or stored workflow API credentials
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 that the n8n instance has at least one of the following trigger nodes active and its associated webhook endpoint reachable over the network: facebookTrigger, whatsAppTrigger, facebookLeadAdsTrigger, or microsoftTeamsTrigger. These endpoints are typically internet-accessible by design, as Meta and Microsoft require public reachability for webhook subscription verification. A logged-in n8n user must be socially engineered into visiting a crafted URL - mandatory user interaction (UI:R) is required; passive or background exploitation is not possible. The CVSS PR:L metric indicates the attack targets an existing authenticated session rather than an unauthenticated endpoint, meaning the victim must be actively logged into n8n when they visit the malicious URL. Exploitation is limited by: (1) the affected trigger nodes must be enabled in the n8n instance configuration, (2) the webhook endpoints must be network-reachable by the attacker, (3) mandatory victim interaction via social engineering, and (4) the victim must hold an active authenticated session at time of exploitation. |
| Impact | The CVSS 3.1 vector AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N scores 7.6, which accurately characterizes the attack as network-reachable with low complexity but requiring both an authenticated session (PR:L) and mandatory user interaction (UI:R). The high confidentiality impact (C:H) and scope change (S:C) are the most significant signals: n8n stores API keys, OAuth tokens, and service credentials within workflows, meaning a successful XSS attack could exfiltrate these high-value secrets or hijack admin sessions to create, modify, or execute workflows. No EPSS score was provided in the intelligence data, so exploitation probability cannot be quantified; no CISA KEV listing exists, and no public exploit code has been identified, which tempers urgency. However, the attack surface is notable - the vulnerable webhook verification endpoints are typically internet-accessible by design (Meta and Microsoft require public reachability for webhook validation), meaning the endpoints are not inherently firewalled. Risk is materially limited by the UI:R requirement: an attacker must social-engineer an authenticated n8n user into clicking a crafted link. For organizations running n8n with public-facing webhook endpoints and multiple users, this is a genuine high-priority patch target. For single-user or internally-hosted deployments, risk is lower but not negligible. |
| Exploit ScenarioDerived | An attacker identifies an n8n instance with an active Facebook or Microsoft Teams trigger node and a public-facing webhook verification endpoint. The attacker constructs a URL to the webhook verification endpoint with a query parameter containing a JavaScript payload (e.g., a cookie-stealing script), then delivers this URL to a logged-in n8n user via a phishing email or embedded link. When the user clicks the link, the n8n server reflects the unsanitized payload into the HTTP response, executing the script in the victim's browser under the n8n application origin and transmitting session tokens or workflow credentials to an attacker-controlled server. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 17, 2026
Reflected XSS in n8n's Facebook (Meta), WhatsApp, and Microsoft Teams webhook trigger nodes allows an attacker to execute arbitrary JavaScript in an authenticated user's browser by luring them to a crafted URL targeting the vulnerable webhook verification endpoints. Affected are all n8n deployments running version < 2.24.0 with any of the four vulnerable trigger nodes active; the CVSS scope change (S:C) means successful exploitation extends beyond the n8n component itself, enabling session hijacking or theft of API credentials stored in workflows. No public exploit code or CISA KEV listing has been identified at time of analysis; a vendor-released patch is confirmed in n8n 2.24.0.
RemediationAI
The primary remediation is to upgrade n8n to version 2.24.0 or later, which is the vendor-confirmed fixed release per advisory GHSA-h86q-fx34-gfjr (https://github.com/n8n-io/n8n/security/advisories/GHSA-h86q-fx34-gfjr). If immediate upgrade is not feasible, two temporary mitigations are available with trade-offs: first, restrict workflow creation and activation permissions to fully trusted users only - this reduces the chance that a low-privileged attacker can activate vulnerable nodes but does not close the endpoint if nodes are already active, and has no effect if the targeted victim is an admin. Second, disable all four vulnerable nodes by setting the environment variable NODES_EXCLUDE to include n8n-nodes-base.facebookTrigger, n8n-nodes-base.whatsAppTrigger, n8n-nodes-base.facebookLeadAdsTrigger, and n8n-nodes-base.microsoftTeamsTrigger - this eliminates the vulnerable endpoints entirely but will break all existing workflows relying on Meta or Microsoft Teams webhook triggers. The vendor explicitly states neither workaround fully remediates the risk and both should be treated as short-term measures only until upgrade to 2.24.0 is completed.
Affected VersionsENISA
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 workflow automation platform distributed as an npm package (pkg:npm/n8n). It supports webhook-based trigger nodes that expose HTTP endpoints used by third-party platforms - including Meta (Facebook, WhatsApp) and Microsoft Teams - to perform webhook subscription verification challenges. These verification endpoints accept and reflect query parameters in their HTTP responses, which is required by the third-party platforms to validate the webhook handshake. The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation): the reflected query parameters are not sanitized or HTML-encoded before being written into the HTTP response, and no Content-Security-Policy headers are set to block inline script execution. This classic reflected XSS pattern means any query parameter value controlled by an attacker is returned verbatim in the response body and executed as JavaScript in the victim's browser. The CVSS scope change (S:C) reflects that exploitation escapes the n8n application boundary into the broader browser security context, enabling cross-origin data access and session manipulation.
Know when the next one hits your stack
- 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
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:N/VA:N/SC:L/SI:N/SA:N
Network-accessible webhook endpoint (AV:N/AC:L) reflects attacker input to authenticated victim browser (PR:L/UI:R), with scope change enabling cross-context credential theft (S:C/C:H); limited integrity impact from constrained JavaScript execution, no availability impact.
Primary rating from Vendor (https://github.com/n8n-io/n8n).
CVSS VectorVendor: https://github.com/n8n-io/n8n
Lifecycle Timeline
2DescriptionCVE.org
Impact
An endpoint in the Meta and Microsoft Teams trigger nodes reflects a query parameter into the HTTP response without sanitization or Content-Security-Policy headers, enabling reflected XSS in the n8n origin when a logged-in user visits a crafted URL.
Patches
The issue has been fixed in n8n version 2.24.0. Users should upgrade to this version or later to remediate the vulnerability.
Workarounds
If upgrading is not immediately possible, administrators should consider the following temporary mitigations:
- Limit workflow creation and activation permissions to fully trusted users only.
- Disable the affected nodes by adding
n8n-nodes-base.facebookTrigger,n8n-nodes-base.whatsAppTrigger,n8n-nodes-base.facebookLeadAdsTrigger, andn8n-nodes-base.microsoftTeamsTriggerto theNODES_EXCLUDEenvironment variable.
These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.
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.
EUVD-2026-38460
GHSA-h86q-fx34-gfjr
NVD
CVE.org
EPSS
VulDB
Exploit-DB