Stored XSS in n8n Form Trigger allows Account Takeover via injected iframe and video/source
Impact
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.
Patches
The issue was addressed in PR #16329. Users should upgrade to version >=1.98.2.
Workarounds
Apart from updating to the fixed version, n8n instance administrators can:
- Configure a reverse proxy to serve webhook requests from a different domain [docs].
- Disable or restrict use of the Form Trigger node, particularly the HTML element type.
- Use a Content Security Policy (CSP) to block execution of inline scripts and disallow use of
srcdoc.
References
Betroffene Software
Klicken Sie auf eine Technologie, um alle zugehörigen Schwachstellen anzuzeigen.
| Plattform | Paket | Anfällige Versionen | Behoben in |
|---|---|---|---|
| npm-Paket | n8n | >= 1.77.0, < 1.98.2 | 1.98.2 |
Verweise
- CVSS-Vektor
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N- Schwäche (CWE)
CWE-79- Plattform
- npm
- Paket
n8n- Veröffentlicht
- 19.08.2025
- Aktualisiert
- 11.10.2026 10:22
Quellen und Lizenzen
OSV / GitHub Advisory Database - GHSA-hfmv-hhh3-43f2 - CC BY 4.0
Schwachstellenhistorie: n8n
Alle veröffentlichten Schwachstellen dieses Pakets (npm-Paket), neueste zuerst. Zeigt, ob es ein einmaliger Ausrutscher ist oder ein Paket, das man im Auge behalten muss.
- Einträge insgesamt
- 156
- Erste → letzte
- 05.2023 09.2026
- Ohne Fix
- 1
- In Angriffen ausgenutzt
- 1
Verteilung nach Schweregrad
- Kritisch 24
- Hoch 58
- Mittel 74
Veröffentlichungen pro Jahr
- 2023: 3
- 2024: 0
- 2025: 14
- 2026: 139
-
Stored XSS in n8n Form Trigger allows Account Takeover via injected iframe and video/source dieser Eintrag
Erkennen Sie Schwachstellen in Ihrer Anwendung
Mit der DockRay-Integration und aktivierter Softwareinventarisierung prüft DockRay gemeldete Komponentenversionen auf bekannte Schwachstellen und benachrichtigt Sie über bestätigte Treffer. Die Abdeckung hängt von der unterstützten Technologie und den verfügbaren Meldungen ab.