Skip to main content

n8n EUVDEUVD-2026-38460

| CVE-2026-54303 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-06-16 https://github.com/n8n-io/n8n GHSA-h86q-fx34-gfjr
6.8
CVSS 4.0 · Vendor: https://github.com/n8n-io/n8n
View

Attack ChainAIDerived

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

  1. Recon
    Identify internet-accessible n8n webhook verification endpoint
  2. Delivery
    Craft malicious URL with XSS payload in reflected query parameter
  3. Exploit
    Deliver URL to authenticated n8n user via phishing or embedded link
  4. Install
    Victim clicks link while logged into n8n
  5. C2
    Server reflects unsanitized payload into HTTP response
  6. Execute
    Injected JavaScript executes in victim browser under n8n origin
  7. Impact
    Exfiltrate 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.

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

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

Alert me

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

n8n < 2.24.0

Affected Packages

npm n8n fix: 2.24.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 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

Vendor (https://github.com/n8n-io/n8n) PRIMARY 6.8 MEDIUM
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
vuln.today AI 7.6 HIGH

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.

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

Primary rating from Vendor (https://github.com/n8n-io/n8n).

CVSS VectorVendor: https://github.com/n8n-io/n8n

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
Active
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
CVSS changed
Jun 23, 2026 - 17:07 NVD
7.6 (MEDIUM) 6.8 (MEDIUM)
CVE Published
Jun 16, 2026 - 22:39 github-advisory
MEDIUM 7.6

DescriptionCVE.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, and n8n-nodes-base.microsoftTeamsTrigger to the NODES_EXCLUDE environment variable.

These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.

Threat Intelligence Overview

EPSS Score
0.3%
Top 79% exploitable
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High

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.3%
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

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
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.

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