CVE-2025-52478: n8n · Cross-site Scripting
Affects n8nSource CVE Database V5
Not known to be exploited · CVSS 8.7 High.
Data as of 26 Oct 2026, 14:05 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 33% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:NExploitation evidence
Disclosed: evidence found.
CVE published 19 Aug 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
AI-suggested
- Upgrade n8n installations to version 1.98.2 or later immediately to apply the official patch addressing this vulnerability.
- Enforce strong authentication policies, including mandatory two-factor authentication (2FA) for all users to reduce the risk of account takeover.
- Restrict access to the Form Trigger node configuration to only trusted and necessary users to minimize the attack surface.
- Implement strict input validation and sanitization on any custom forms or user-generated content within n8n workflows, if customization is used.
- Monitor logs and user activity for unusual behavior indicative of account compromise, such as unexpected changes to account details or workflow configurations.
- Educate users about the risks of clicking on untrusted links or forms within the n8n environment to reduce the likelihood of triggering malicious payloads.
- Consider network segmentation and limiting n8n access to trusted networks to reduce exposure.
- Regularly review and audit n8n workflows and nodes for unauthorized modifications or suspicious content.
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.