# CVE-2025-52478: Stored XSS in n8n Form Trigger allows Account Takeover via injected iframe and video/source

- Severity: High 8.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.48%, higher than 43% of CVEs (2026-12-01)
- Published: 2025-08-19T15:33:35.000Z
- Modified: 2026-06-17T09:36:34.183Z
- Also known as: GHSA-hfmv-hhh3-43f2
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- n8n-io n8n: >= 1.77.0, < 1.98.2
- n8n (npm): from 1.77.0 before 1.98.2
- n8n n8n: from 1.77.0 before 1.98.2

## Every score

- GitHub_M: CVSS:3.1 8.7 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N`
- GitHub: CVSS:3.1 8.7 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/n8n-io/n8n/security/advisories/GHSA-hfmv-hhh3-43f2> (patch, vendor-advisory, web)
- <https://github.com/n8n-io/n8n/pull/16329> (patch, web)
- <https://github.com/n8n-io/n8n/commit/7940384a85041a1890b1203d69c092c887312500> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-52478> (advisory)
- <https://github.com/n8n-io/n8n> (package)

## Sources

- CVE List: [CVE-2025-52478](https://www.cve.org/CVERecord?id=CVE-2025-52478), CVE Terms of Use, modified 2025-08-19
- GitHub Advisory Database: [GHSA-hfmv-hhh3-43f2](https://github.com/advisories/GHSA-hfmv-hhh3-43f2), CC-BY-4.0, modified 2025-08-19
- NVD: [CVE-2025-52478](https://nvd.nist.gov/vuln/detail/CVE-2025-52478), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-52478 · Whole record: https://cve.day/CVE-2025-52478.json · Rebuilt by cve.day 2026-11-25T22:59:02.784Z
