{"id":"CVE-2026-65597","aliases":["GHSA-p3rg-hrf9-w9gj"],"url":"https://o3.security/vulnerability/CVE-2026-65597","summary":"n8n before 1.123.64 DOM-Based XSS via Unsandboxed iframe","details":"## Impact\n\nThe HTML preview renders execution output into an `iframe srcdoc` without `sandbox`, so a sanitizer bypass lets injected script run same-origin as the editor. When a victim opens the preview, it can call authenticated APIs with their session. An account with `global:member` privileges can exploit it.\n\n## Patches\n\nThe issue has been fixed in n8n versions 1.123.64, 2.29.8, and 2.30.1. Users should upgrade to one of these versions or later to remediate the vulnerability.\n\n## Workarounds\n\nIf upgrading is not immediately possible, administrators should consider the following temporary mitigations:\n- Restrict n8n instance access to fully trusted users only.\n- Set the `N8N_CONTENT_SECURITY_POLICY` environment variable to a policy that blocks inline scripts.\n- Avoid exposing workflows that render externally-controlled input into the HTML node or binary HTML preview to untrusted users.\n\nThese workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.","published":"2026-07-22T11:21:44.721Z","modified":"2026-10-21T02:31:01.510256200Z","cvss":null,"epss":{"score":0.00214,"percentile":0.11845,"asOf":"2026-09-15"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"n8n","fixedVersion":"1.123.64"},{"ecosystem":"npm","name":"n8n","fixedVersion":"2.30.1"},{"ecosystem":"npm","name":"n8n","fixedVersion":"2.29.8"}],"fix":null,"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/65xxx/CVE-2026-65597.json"},{"type":"ADVISORY","url":"https://github.com/n8n-io/n8n/security/advisories/GHSA-p3rg-hrf9-w9gj"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-65597"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/n8n-before-dom-based-xss-via-unsandboxed-iframe"},{"type":"PACKAGE","url":"https://github.com/n8n-io/n8n"},{"type":"WEB","url":"https://github.com/n8n-io/n8n/releases/tag/n8n@1.123.64"},{"type":"WEB","url":"https://github.com/n8n-io/n8n/releases/tag/n8n@2.29.8"},{"type":"WEB","url":"https://github.com/n8n-io/n8n/releases/tag/n8n@2.30.1"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-21T02:31:01.510256200Z"}}