Skip to content
Heist/ feed
Back to feed
High

Stored XSS in n8n Form Trigger allows Account Takeover via injected iframe and video/source

Type: advisorySources: OSV

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 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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-52478
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 02:26 UTC · Revision 1

Source evidence

Stored XSS in n8n Form Trigger allows Account Takeover via injected iframe and video/source

core-osv · Original source

Published 19 Aug 2025, 16:32 UTC

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 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.

osv:CVE-2025-52478
Complete source record
{
  "id": "9342101b5d755a2cbb70aec6a7979466b765a229ec403a280f75d06656bbab62",
  "url": "https://osv.dev/vulnerability/CVE-2025-52478",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Stored XSS in n8n Form Trigger allows Account Takeover via injected iframe and video/source",
    "summary": "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 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.",
    "evidence": "osv:CVE-2025-52478",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2025-52478",
      "aliases": [
        "CVE-2025-52478",
        "GHSA-hfmv-hhh3-43f2"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/n8n-io/n8n",
              "type": "GIT",
              "events": [
                {
                  "introduced": "812619e375c316be141dd39b9fb82a4714cd75ad"
                },
                {
                  "fixed": "462acf12d9e4e159e4a56fbacd204c436604740e"
                },
                {
                  "fixed": "7940384a85041a1890b1203d69c092c887312500"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:n8n:n8n:*:*:*:*:*:node.js:*:*",
                    "range": [
                      {
                        "introduced": "1.77.0"
                      },
                      {
                        "fixed": "1.98.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "7940384a85041a1890b1203d69c092c887312500"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-52478.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:49.063609308Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/52xxx/CVE-2025-52478.json",
        "https://github.com/n8n-io/n8n/security/advisories/GHSA-hfmv-hhh3-43f2",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-52478",
        "https://github.com/n8n-io/n8n/commit/7940384a85041a1890b1203d69c092c887312500",
        "https://github.com/n8n-io/n8n/pull/16329"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-79"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/52xxx/CVE-2025-52478.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-52478",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 517351,
  "published_at": "2025-08-19T16:32:34.949+00:00"
}