Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAuthenticate to n8n with low-privilege account
-
DeliveryCreate or modify workflow with Form Trigger node
-
ExploitCraft CSS payload bypassing sanitization
-
InstallPublish form to external URL
-
C2Victim passively loads published form
-
ExecuteInjected script executes in victim's browser
-
ImpactHijack form submission or serve phishing content
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 authenticated n8n account with workflow creation or modification permissions (PR:L per CVSS 4.0 vector) - administrative privileges are not required, making any low-privilege internal user a potential threat actor. The Form Trigger node must be enabled (not excluded via NODES_EXCLUDE) and a form must be published and reachable by external or internal victims. Payload execution is triggered by passive user interaction from form visitors loading the published form URL (UI:P). The vendor-confirmed Content Security Policy prevents n8n session cookie theft, limiting confidentiality impact to data visible on or submitted through the form. The attack does NOT require a specific platform, OS, or non-default configuration beyond n8n running with its default Form Trigger node enabled and the attacker holding workflow creation rights. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:P - score 5.1) accurately reflects the threat model: network-reachable with low complexity, but gated behind low-privilege authentication and requiring passive user interaction from form visitors. The subsequent-system impact metrics (SC:L/SI:L) confirm that the primary harm lands on form visitors rather than the n8n instance itself, consistent with the CSP partially containing the blast radius. No CISA KEV listing and no public POC are present in the input data, indicating no confirmed widespread exploitation at time of analysis. However, the stored nature of the payload materially elevates real-world risk beyond a typical reflected XSS: a single workflow modification can persistently compromise an unlimited number of visitors with zero additional attacker effort. The low exploitation bar - any authenticated user with workflow creation rights, not just admins - further broadens the internal threat surface in multi-tenant or SaaS-hosted n8n deployments. EPSS data was not provided; risk should be treated as moderate absent further telemetry. |
| Exploit ScenarioDerived | An authenticated n8n user with workflow creation permissions opens or modifies a workflow containing a Form Trigger node and injects a JavaScript payload crafted to evade the flawed CSS sanitization routine. Once the workflow is published, every subsequent visitor who loads the form URL unknowingly executes the injected script in their browser, which silently redirects form submissions to an attacker-controlled endpoint or renders convincing phishing content - all while the victim interacts with what appears to be a legitimate n8n-hosted form. No POC has been publicly identified at time of analysis, but the technique requires only standard web application knowledge. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 24, 2026
Stored XSS in n8n's Form Trigger node allows any authenticated low-privilege user with workflow creation rights to inject persistent malicious scripts that execute for every visitor of a published form. Affects n8n 1.x before 1.123.25 and 2.x from 2.0.0-rc.0 before 2.11.2. No public exploit or active exploitation identified at time of analysis; the CVSS 4.0 score of 5.1 reflects partial CSP mitigation blocking session cookie theft while still permitting form hijacking and phishing against unlimited downstream victims.
RemediationAI
Vendor-released patches are available: upgrade n8n to version 2.11.2 or 2.12.0 (for 2.x deployments) or to 1.123.25 (for 1.x deployments), as confirmed by GHSA-q4fm-pjq6-m63g at https://github.com/n8n-io/n8n/security/advisories/GHSA-q4fm-pjq6-m63g. If immediate upgrade is not feasible, two vendor-documented temporary mitigations exist: first, restrict workflow creation and editing permissions to fully trusted users only, which reduces the attack surface to a smaller principal set but may disrupt operational workflows for broader teams; second, disable the Form Trigger node entirely by adding the string 'n8n-nodes-base.formTrigger' to the NODES_EXCLUDE environment variable, which eliminates the vulnerable attack surface entirely but renders all Form Trigger-based workflows non-operational until the patch is applied. The vendor explicitly notes these workarounds do not fully remediate the risk and should be treated as short-term measures only.
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 the npm package 'n8n' (CPE: cpe:2.3:a:n8n:n8n). Its Form Trigger node allows users to publish externally accessible HTML forms that collect visitor-submitted data. The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation) specifically in the CSS sanitization logic applied to Form Trigger node inputs - the sanitizer fails to block injected JavaScript within CSS constructs, permitting stored payloads to persist in the published form's DOM. Unlike reflected XSS, the stored nature means a single injection event affects all subsequent form visitors without further attacker interaction. The vendor's existing Content Security Policy provides partial mitigation by preventing direct n8n session cookie exfiltration, but does not block script execution or manipulation of form submission targets.
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
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
Low-privilege authenticated attacker stores payload affecting all form visitors (scope change); CSP limits confidentiality to non-cookie form data; no availability impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
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.
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.
Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation
n8n workflow automation (through 1.121.2) allows authenticated users to execute arbitrary code via the n8n service, with
n8n workflow automation (1.65.0 to 1.121.0) allows unauthenticated file access through form-based workflows. A critical
n8n has a fifth critical RCE vulnerability (CVSS 9.9) in the Expression evaluator, enabling code execution through craft
Authenticated users who can create or modify an n8n workflow can achieve remote code execution on the n8n host by abusin
A prototype pollution vulnerability in the XML and GSuiteAdmin nodes of n8n workflow automation platform allows authenti
An authenticated user with workflow creation or modification privileges in n8n workflow automation platform can exploit
n8n-workflows Main Commit ee25413 allows attackers to execute a directory traversal via the download_workflow function w
Second-order expression injection in n8n workflow automation before 2.10.1/2.9.3/1.123.22. Crafted workflow data trigger
An arbitrary file upload vulnerability in the Chat Trigger component of N8N v1.95.3, v1.100.1, and v1.101.1 allows attac
Authenticated n8n users can hijack administrator accounts when LDAP authentication is enabled by manipulating their LDAP
The n8n package 0.218.0 for Node.js allows Escalation of Privileges. Rated high severity (CVSS 8.8), this vulnerability
EUVD-2026-38754
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB