{
  "id": "CVE-2026-65597",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-65597",
  "published_at": "2026-07-22T11:21:44.721Z",
  "title": "n8n before 1.123.64 DOM-Based XSS via Unsandboxed iframe",
  "vendor": "n8n-io",
  "product": "n8n",
  "cvss": {
    "score": 8.2,
    "source": "cna",
    "vector": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:L/VA:N/SC:H/SI:L/SA:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "n8n before 1.123.64, 2.x before 2.29.8, and before 2.30.1 contains a DOM-based cross-site scripting vulnerability in the HTML preview, which renders execution output into an iframe srcdoc without the sandbox attribute. A sanitizer bypass allows injected script to execute same-origin as the editor. When a victim opens the preview, the script can call authenticated APIs using the victim's session. An account with global:member privileges can exploit the issue.",
  "cwe": "CWE-79",
  "cpes": [
    "cpe:2.3:a:n8n:n8n:*:*:*:*:community:node.js:*:*",
    "cpe:2.3:a:n8n:n8n:*:*:*:*:enterprise:node.js:*:*",
    "cpe:2.3:a:n8n:n8n:2.30.0:*:*:*:community:node.js:*:*",
    "cpe:2.3:a:n8n:n8n:2.30.0:*:*:*:enterprise:node.js:*:*"
  ],
  "cvss_by_source": {
    "cna": 8.2,
    "nvd": 5.4
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "n8n-io",
        "product": "n8n",
        "ranges": [
          "\u003c 1.123.64"
        ],
        "fixed_in": [
          "1.123.64"
        ]
      },
      {
        "vendor": "n8n-io",
        "product": "n8n",
        "ranges": [
          "\u003e= 2.30.0, \u003c 2.30.1"
        ],
        "fixed_in": [
          "2.30.1"
        ]
      },
      {
        "vendor": "n8n-io",
        "product": "n8n",
        "ranges": [
          "\u003e= 2.0.0-rc.0, \u003c 2.29.8"
        ],
        "fixed_in": [
          "2.29.8"
        ]
      }
    ],
    "upgrade": [
      "Upgrade n8n to 1.123.64 or later.",
      "Upgrade n8n to 2.30.1 or later.",
      "Upgrade n8n to 2.29.8 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/n8n-io/n8n/security/advisories/GHSA-p3rg-hrf9-w9gj"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
