Vulnerability 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.
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| N8N | N8N | >= 1.77.0, < 1.98.2 |
Related Weaknesses (CWE)
References
- https://github.com/n8n-io/n8n/commit/7940384a85041a1890b1203d69c092c887312500Patch
- https://github.com/n8n-io/n8n/pull/16329Patch
- https://github.com/n8n-io/n8n/security/advisories/GHSA-hfmv-hhh3-43f2PatchVendor Advisory
FAQ
What is CVE-2025-52478?
CVE-2025-52478 is a vulnerability with a CVSS score of 8.7 (HIGH). 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....
How severe is CVE-2025-52478?
CVE-2025-52478 has been rated HIGH with a CVSS base score of 8.7/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2025-52478?
Check the references section above for vendor advisories and patch information. Affected products include: N8N N8N.