CVE-2025-52478
MEDIUM 5.4CVSS 3.1Stored XSS in n8n Form Trigger allows Account Takeover via injected iframe and video/source
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.
- Published
- 19 Aug 2025
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-79
- Also known as
- GHSA-hfmv-hhh3-43f2
- Sources
- NVDJSONOSV GHSA-hfmv-hhh3-43f2JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.7 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 8.7 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | n8n | n8ncpe:2.3:a:n8n:n8n:*:*:*:*:*:node.js:*:* |
>= 1.77.0, < 1.98.2 | 1.98.2 |
| OSV | npm | n8n | >= 1.77.0, < 1.98.2 | 1.98.2 |
References
- https://github.com/n8n-io/n8n/commit/7940384a85041a1890b1203d69c092c887312500 · Patch, WEB
- https://github.com/n8n-io/n8n/pull/16329 · Patch, WEB
- https://github.com/n8n-io/n8n/security/advisories/GHSA-hfmv-hhh3-43f2 · Patch, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-52478 · ADVISORY
- https://github.com/n8n-io/n8n · PACKAGE
History
- 25 Nov 2026 20:58 UTC · NVD: first stored (published 19 Aug 2025)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 19 Aug 2025)