Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. n8n
  4. ›
  5. CVE-2025-52478

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

August 19, 2025

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.

References

  • github.com/advisories/GHSA-hfmv-hhh3-43f2
  • github.com/n8n-io/n8n
  • github.com/n8n-io/n8n/commit/7940384a85041a1890b1203d69c092c887312500
  • github.com/n8n-io/n8n/pull/16329
  • github.com/n8n-io/n8n/security/advisories/GHSA-hfmv-hhh3-43f2
  • nvd.nist.gov/vuln/detail/CVE-2025-52478

Code Behaviors & Features

Detect and mitigate CVE-2025-52478 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 1.77.0 before 1.98.2

Fixed versions

  • 1.98.2

Solution

Upgrade to version 1.98.2 or above.

Impact 8.7 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

npm/n8n/CVE-2025-52478.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 20 Aug 2025 00:18:02 +0000.