CVE-2026-56358: n8n Form Trigger Stored XSS Vulnerability (CVSS 5.4)
n8n, a popular workflow automation platform, has a stored cross-site scripting (XSS) vulnerability in its Form Trigger node. Users with permission to create workflows can embed malicious code into form designs that will execute automatically whenever someone visits the form. This affects n8n versions before 1.123.25 (in the 1.x line) and before 2.11.2 (in the 2.x line), with a fix also available in 2.12.0. The vulnerability requires the attacker to already have workflow creation access, limiting the immediate blast radius but creating significant risk for organizations where multiple users can design forms.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 5.4 MEDIUM · CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- Weaknesses (CWE)
- CWE-79
- Affected products
- 1 configuration(s)
- Published / Modified
- 2026-06-24 / 2026-06-26
NVD description (verbatim)
n8n before 1.123.25 (1.x) and before 2.11.2 (2.x), with the fix also included in 2.12.0, contains a stored cross-site scripting vulnerability in the Form Trigger node's CSS sanitization that allows authenticated users to inject malicious scripts. Attackers with workflow creation permissions can inject XSS payloads that execute persistently for all form visitors, enabling form hijacking and phishing attacks.
2 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
The vulnerability stems from insufficient CSS sanitization in the Form Trigger node component. When users design forms via the n8n UI, malicious actors with workflow creation permissions can craft XSS payloads that bypass the sanitization filter. Unlike reflected XSS, this payload persists in the workflow definition and executes server-side or in every visitor's browser session, making it a stored XSS vulnerability. The CVSS 3.1 score of 5.4 reflects that exploitation requires prior authentication and user interaction (form viewing), but the impact spans form hijacking, credential theft, and phishing at scale.
Business impact
For organizations deploying n8n for form collection, customer intake, or data gathering, a compromised form becomes a vector for credential harvesting and social engineering. An insider or compromised admin account can inject phishing forms that capture user credentials or distribute malware links to all form visitors without triggering typical phishing detection. This is particularly damaging in regulated industries where form data handles PII or financial information. The reputational and compliance costs can exceed the technical remediation effort.
Affected systems
n8n versions 1.x before 1.123.25 and 2.x before 2.11.2 are affected. Version 2.12.0 includes the fix retroactively. Self-hosted n8n deployments and n8n Cloud customers on affected versions require patching. Any form trigger nodes designed before patching should be reviewed for malicious payloads.
Exploitability
Exploitation requires authenticated access with workflow creation permissions, reducing opportunistic exploitation risk. However, the attack requires no complex technical sophistication—a simple HTML/JavaScript payload embedded in form CSS fields executes reliably. User interaction (visiting the form) is required for the XSS to trigger, but forms are typically shared widely. The stored nature means the payload persists indefinitely across all visitor sessions until the form is corrected.
Remediation
Upgrade n8n to version 1.123.25 or later (1.x line) or 2.11.2 or later (2.x line). Version 2.12.0 also contains the fix. After upgrading, audit existing Form Trigger nodes for suspicious CSS or unexpected script content. Consider restricting workflow creation permissions to trusted users and implementing code review processes for form designs that handle sensitive data collection.
Patch guidance
For 1.x users: upgrade to 1.123.25 or later. For 2.x users: upgrade to 2.11.2 or later; 2.12.0 is also a valid target. Self-hosted deployments should prioritize this upgrade given the ease of exploitation by internal users. n8n Cloud customers should verify their current version and apply the update if running affected builds. No downtime should be required for the upgrade itself, but plan a brief maintenance window to validate form functionality post-patch.
Detection guidance
Review Form Trigger node configurations for inline scripts, event handlers (onclick, onerror, etc.), or unusual CSS properties in form definitions. Look for workflow audit logs showing modifications to Form Trigger nodes by unexpected users. Monitor browser console errors on form pages for XSS-related warnings. If using n8n Cloud, request logs showing form node changes in the relevant timeframe. Endpoint Detection and Response (EDR) tools may flag XSS payloads if they contain known malicious domains or patterns.
Why prioritize this
Although the CVSS score is moderate (5.4), the stored XSS nature and form-hijacking potential elevate practical risk. Organizations using n8n for customer-facing forms, lead capture, or authentication flows should prioritize this patch. The low attack complexity and high visibility (every form visitor sees the payload) make this more dangerous than the score alone suggests. Delay increases insider-threat and supply-chain risks.
Risk score, explained
CVSS 5.4 (MEDIUM) reflects the requirement for authenticated access (PR:L) and user interaction (UI:R), plus the limit to confidentiality and integrity (C:L/I:L) without availability impact. However, the stored persistence and cross-user scope (S:C) elevate real-world risk beyond the numeric score. Organizations handling sensitive form data should treat this as a high-priority patch candidate internally.
Frequently asked questions
Can an attacker exploit this without a workflow creation account?
No. The vulnerability requires authentication and explicit workflow creation permissions. However, compromised accounts, overly permissive role assignments, or insider threats make this a legitimate concern in multi-user environments.
Does patching remove existing malicious payloads from my forms?
Patching closes the vulnerability and prevents new injections, but does not automatically clean infected forms. After upgrading, manually review and correct any Form Trigger nodes that may have been modified with XSS payloads during the vulnerable period.
Is n8n Cloud affected?
Yes, n8n Cloud customers on affected versions are vulnerable. Check your instance version and apply the update. Verify with n8n support if you are unsure of your current build.
What is the practical impact of this vulnerability for my organization?
If you use n8n Form Triggers for customer intake, surveys, or authentication flows, a compromised form can harvest credentials, distribute phishing links, or inject malware. The risk is highest if multiple untrusted users have workflow creation permissions or if form data is sensitive.
This analysis is provided for informational purposes and reflects the CVE record and vendor advisories as of the publication date. Verify all patch versions, compatibility, and deployment timelines against official n8n release notes and security advisories before patching. This explainer does not constitute legal, compliance, or operational advice. Organizations should consult internal security and compliance teams when prioritizing remediation. No guarantee is made regarding completeness or real-time accuracy of this content. Source: NVD (public-domain), retrieved 2026-07-30. Analysis generated by SEC.co (claude-haiku-4-5).
Related vulnerabilities
- CVE-2026-54301MEDIUMn8n Webhook XSS Vulnerability Bypasses CSP (CVSS 5.4)
- CVE-2026-54302MEDIUMn8n Chat Trigger Stored XSS Vulnerability
- CVE-2026-54303MEDIUMn8n Reflected XSS in Meta & Teams Triggers (v2.24.0 Fix)
- CVE-2016-20070MEDIUMPrivilege Escalation & Stored XSS in WordPress Booking Calendar Contact Form 1.0.23
- CVE-2018-25384MEDIUMStored XSS in Wikidforum 2.20 Allows Authenticated Attackers to Inject Malicious Scripts
- CVE-2019-25731MEDIUMStored XSS in Zuz Music 2.1 Contact Form
- CVE-2019-25737MEDIUMStored XSS in Live Chat Unlimited 2.8.3 – Admin Session Compromise
- CVE-2019-25739MEDIUMGigToDo 1.3 Stored XSS Vulnerability in Proposal Descriptions