CVE-2025-52478 Details
Description
n8n is a workflow automation platform. From 1.77.0 to before 1.98.2, a stored Cross-Site Scripting (XSS) vulnerability was identified in n8n, specifically in the Form Trigger node's HTML form element. An authenticated attacker can inject malicious HTML via an <iframe> with a srcdoc payload that includes arbitrary JavaScript execution. The attacker can also inject malicious Javascript by using <video> coupled <source> using an onerror event. While using iframe or a combination of video and source tag, this vulnerability allows for Account Takeover (ATO) by exfiltrating n8n-browserId and session cookies from authenticated users who visit a maliciously crafted form. Using these tokens and cookies, an attacker can impersonate the victim and change account details such as email addresses, enabling full control over the account—especially if 2FA is not enabled. Users should upgrade to version >= 1.98.2.
A stored Cross-Site Scripting (XSS) vulnerability has been identified in n8n versions 1.77.0 prior to 1.98.2. The issue resides in the Form Trigger node's HTML form element, where an authenticated attacker can inject malicious HTML, such as an iframe with a srcdoc payload executing arbitrary JavaScript. This vulnerability can also be exploited by using a video tag with a source tag that triggers an onerror event. The injected JavaScript can exfiltrate the n8n-browserId and session cookies from authenticated users who interact with the malicious form. This allows the attacker to impersonate the victim and gain control over their account, particularly if two-factor authentication is not enabled.
Users should upgrade to n8n version 1.98.2 or later. For n8n instance administrators, additional steps include configuring a reverse proxy to serve webhook requests from a different domain, disabling or restricting the use of the Form Trigger node, and implementing a Content Security Policy to block inline scripts and disallow the use of srcdoc.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Aug 19, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| n8n n8n | >= 1.77.0, < 1.98.2 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Sep 3, 2025 | Initial Analysis | [email protected] |
| Aug 19, 2025 | New CVE Received | [email protected] |