GHSA-hfmv-hhh3-43f2: Stored XSS in n8n Form Trigger allows Account Takeover via injected iframe and video/source
- Identifiers
- CVE-2025-52478GHSA-hfmv-hhh3-43f2
- Published
- Record updated
- 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.
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- n8nnpmLLM dependency since 2026-02-11
Related items
- MediumCVE-2026-143864: InfiniFlow RAGFlow template injection in Canvas StringTransform HandlerSimilar attack, NVD/CVE Database
- MediumCVE-2026-85259: Gemini CLI Triage Flaw Lets Issue Authors Run Code in GitHub ActionsSimilar attack, StepSecurity Blog
- MediumCVE-2026-143967: Wise Chat with AI unauthenticated stored cross-site scriptingSimilar attack, NVD/CVE Database
- MediumCVE-2026-135917: Apache Camel A2A component confused deputy via shared message headersSimilar attack, NVD/CVE Database
- MediumCVE-2026-107489: Improper Authentication vulnerability in Apache Camel A2A component. This issue affects Apache Camel: from 4.21.0…Similar attack, NVD/CVE Database