Vulnerabilities · 2025 · N8n
CVE-2025-52478
N8n vulnerability
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. The exact versions are in the references.
What to do now
- Check your exposureFind out whether N8n runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/n8n-io/n8n/security/advisories/GHSA-hfmv-hhh3-43f2 · Patch
- github.com/n8n-io/n8n/commit/7940384a85041a1890b1203d69c092c887312500 · Patch
- github.com/n8n-io/n8n/pull/16329 · Patch
- nvd.nist.gov/vuln/detail/CVE-2025-52478
- github.com/advisories/GHSA-hfmv-hhh3-43f2
- nvd.nist.gov/vuln/detail/CVE-2025-52478
- cve.org/CVERecord?id=CVE-2025-52478
More vulnerabilities in N8n products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.