{"id":"CVE-2026-65597","aliases":["CVE-2026-65597","GHSA-p3rg-hrf9-w9gj"],"related":[],"kind":"vulnerability","state":"published","title":"n8n before 1.123.64 DOM-Based XSS via Unsandboxed iframe","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"## 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"n8n antes de 1.123.64, 2.x antes de 2.29.8, y antes de 2.30.1 contiene una vulnerabilidad de cross-site scripting basada en DOM en la vista previa HTML, que renderiza la salida de ejecución en un iframe srcdoc sin el atributo sandbox. Una omisión del saneador permite que el script inyectado se ejecute con el mismo origen que el editor. Cuando una víctima abre la vista previa, el script puede llamar a APIs autenticadas usando la sesión de la víctima. Una cuenta con privilegios global:member puede explotar el problema.","source":"nvd"}],"published":"2026-07-22T11:21:44.721Z","modified":"2026-10-29T21:16:26.685Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","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","score":8.2,"rating":"HIGH"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","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","score":8.2,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"1.123.64","status":"affected"},{"type":"semver","version":"1.123.64","status":"unaffected"}],"vendor":"n8n-io","product":"n8n","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"2.30.0","fixed":"2.30.1","status":"affected"},{"type":"semver","version":"2.30.1","status":"unaffected"}],"vendor":"n8n-io","product":"n8n","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"2.0.0-rc.0","fixed":"2.29.8","status":"affected"},{"type":"semver","version":"2.29.8","status":"unaffected"}],"vendor":"n8n-io","product":"n8n","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.123.64"}],"ecosystem":"npm","package":"n8n","purl":"pkg:npm/n8n","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.30.0","status":"affected","fixed":"2.30.1"}],"ecosystem":"npm","package":"n8n","purl":"pkg:npm/n8n","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.0.0-rc.0","status":"affected","fixed":"2.29.8"}],"ecosystem":"npm","package":"n8n","purl":"pkg:npm/n8n","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.123.64"},{"status":"affected","fixed":"1.123.64"},{"status":"affected","introduced":"2.0.0","fixed":"2.29.8"},{"status":"affected","introduced":"2.0.0","fixed":"2.29.8"},{"status":"affected","version":"2.30.0"},{"status":"affected","version":"2.30.0"}],"vendor":"n8n","product":"n8n","cpe":"cpe:2.3:a:n8n:n8n:*:*:*:*:community:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/n8n-io/n8n/security/advisories/GHSA-p3rg-hrf9-w9gj","tags":["mitigation","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.vulncheck.com/advisories/n8n-before-dom-based-xss-via-unsandboxed-iframe","tags":["third-party-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-65597","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/n8n-io/n8n","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/n8n-io/n8n/releases/tag/n8n@1.123.64","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/n8n-io/n8n/releases/tag/n8n@2.29.8","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/n8n-io/n8n/releases/tag/n8n@2.30.1","tags":["web"],"sources":["ghsa"]}],"credits":["odgrso"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-07-22T15:57:59.235Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-65597","url":"https://www.cve.org/CVERecord?id=CVE-2026-65597","licence":"CVE Terms of Use","modified":"2026-10-29T21:16:26.685Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-p3rg-hrf9-w9gj","url":"https://github.com/advisories/GHSA-p3rg-hrf9-w9gj","licence":"CC-BY-4.0","modified":"2026-07-22T19:03:13.869Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-65597","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-65597","licence":"Public domain","modified":"2026-10-29T20:17:32.970Z"}],"updatedAt":"2026-11-25T22:59:29.810Z","epss":{"score":0.00261,"percentile":0.19112,"date":"2026-12-01T12:00:22.000Z"}}