Skip to content
HighVulnerability

GHSA-hfmv-hhh3-43f2: Stored XSS in n8n Form Trigger allows Account Takeover via injected iframe and video/source

Published
Record updated
View JSON
Affected
  • n8n >= 1.77.0, < 1.98.2
Fixed in
1.98.2
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.5%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .

Summary

A stored cross-site scripting flaw in the n8n Form Trigger node's HTML form element lets an authenticated attacker inject JavaScript through an iframe srcdoc payload or a video and source tag using an onerror event. When a victim opens the crafted form, the attacker can exfiltrate n8n-browserId and session cookies, enabling account takeover and changes to account details such as email addresses, especially where 2FA is not enabled.

Mitigation

Upgrade to version >=1.98.2. The issue was addressed in PR #16329. Other workarounds: configure a reverse proxy to serve webhook requests from a different domain, disable or restrict the Form Trigger node (particularly the HTML element type), or use a Content Security Policy that blocks inline scripts and disallows srcdoc.