What’s Vulnerable › Vulnerabilities
CVE-2025-52478: Stored XSS in n8n Form Trigger allows Account Takeover via injected iframe and video/source
- Severity: medium (CVSS 5.4 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.4% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-08-19 · updated 2026-06-17
- Weakness: CWE-79
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.
Affected products
- n8n-io n8n: from 1.77.0 before 1.98.2 — fixed in 1.98.2
How to fix
Upgrade to a fixed version: n8n-io n8n 1.98.2. Check the vendor advisory for mitigations.
References
- https://github.com/n8n-io/n8n/commit/7940384a85041a1890b1203d69c092c887312500
- https://github.com/n8n-io/n8n/pull/16329
- https://github.com/n8n-io/n8n/security/advisories/GHSA-hfmv-hhh3-43f2
Get alerted when CVE-2025-52478 or the next vulnerability affects your stack