CVE-2026-54303: n8n: Reflected XSS via Facebook, WhatsApp, and Microsoft Teams Trigger Webhook Verification Endpoints
n8n versions below 2.24.0 have a reflected cross-site scripting flaw in the webhook verification endpoints of the Facebook, WhatsApp, Facebook Lead Ads and Microsoft Teams trigger nodes. A logged-in user who opens a crafted URL runs the attacker's script in the n8n origin. Fixed in n8n 2.24.0.
Published Jun 16, 2026 · Updated Jul 20, 2026 · Analysis Nov 9, 2026
What an attacker can do
The Meta and Microsoft Teams trigger nodes expose webhook endpoints that handle verification requests. One of them copies a query parameter into the HTTP response without sanitization and without Content-Security-Policy headers. A link containing script in that parameter makes the browser run it as part of the n8n page.
The script runs with the session of whoever opens the link, so an attacker can act as an n8n user: read workflows and stored credential metadata, change workflows, or create access for themselves. The CVSS vector has changed scope and high confidentiality impact, with user interaction required.
The attacker needs an account (low privilege) per the vector, and a victim who is logged in to n8n and clicks the crafted URL. The trigger endpoints only exist for workflows that use one of the four nodes, which is why the workaround focuses on who may create and activate workflows. The advisory does not name the endpoint path or parameter.
Who is affected
Affected: npm n8n below 2.24.0. Exposure requires a workflow that uses one of these trigger nodes: n8n-nodes-base.facebookTrigger, n8n-nodes-base.whatsAppTrigger, n8n-nodes-base.facebookLeadAdsTrigger or n8n-nodes-base.microsoftTeamsTrigger.
npm ls n8n
n8n --versionFor Docker, check the image tag. The UI shows the version under Help, About.
n8n
- Ecosystem
- npm
- Affected
- < 2.24.0
- Fixed in
- 2.24.0
- Check
npm ls n8n
How to fix it
Upgrade to n8n 2.24.0 or later:
npm install [email protected]For Docker, pull a 2.24.0 or newer tag. If you cannot upgrade, the advisory lists two short-term measures that do not fully remediate the risk: limit workflow creation and activation to fully trusted users, and add the four trigger node types above to the NODES_EXCLUDE environment variable.
How to tell if you were hit
Check which workflows use the Facebook, WhatsApp, Facebook Lead Ads or Microsoft Teams trigger nodes and who activated them. In reverse proxy or access logs, look for GET requests to those webhook paths with query strings that contain script tags, angle brackets, javascript: or encoded versions such as %3Cscript. Treat clicks on such links by logged-in admins as a possible session compromise and review their recent actions.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
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.
Credited to sm1ee.
Questions
- Does CVE-2026-54303 affect every n8n instance?
Versions below 2.24.0 are affected. The vulnerable endpoint belongs to four trigger nodes, so instances that run none of them have less exposure, but upgrading is still the fix.
- Does the victim need to be logged in?
Yes. The advisory says the script runs when a logged-in user visits the crafted URL, with that user's session privileges in the n8n origin.
- What are the workarounds?
Limit who can create and activate workflows, and add the four affected node types to NODES_EXCLUDE. The advisory says neither fully removes the risk.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More n8n vulnerabilities
All n8n entriesCVE-2026-86073
n8n: Per-Resource OAuth Consent Bypass via Unbound Refresh Token Resource Substitution
medium5.9Sep 10, 2026CVE-2026-86074
n8n: Instance AI Credential Setup Accepts Unvalidated Probe URL from Fetched Content
medium5.9Sep 10, 2026CVE-2026-86075
n8n: Unauthenticated Persistent Storage Exhaustion via OAuth Dynamic Client Registration Endpoint
high8.7Sep 10, 2026CVE-2026-86076
n8n: Expression Sandbox Escape via Class-Field Sanitizer Rebinding Can Lead to Code Execution
high8.7Sep 10, 2026CVE-2026-86077
n8n: Anonymous Approval-Gate Bypass via Reused resumeToken over the Chat WebSocket
medium6.3Sep 10, 2026CVE-2026-86078
n8n: Prototype Pollution via Workflow Structure Summary Can Lead to Denial of Service
medium6.0Sep 10, 2026
