CVE-2026-65597
HIGH 8.2CVSS 4.0n8n: DOM-Based XSS via Unsandboxed iframe srcdoc in HTML Preview
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.
- Published
- 22 Jul 2026
- Last modified
- 29 Oct 2026
- Assigned by
- disclosure@vulncheck.com
- NVD status
- Analyzed
- Weakness
- CWE-79
- Also known as
- GHSA-p3rg-hrf9-w9gj
- Sources
- NVDJSONOSV GHSA-p3rg-hrf9-w9gjJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 4.0 | HIGH 8.2 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | n8n | n8ncpe:2.3:a:n8n:n8n:*:*:*:*:community:node.js:*:* |
< 1.123.64 | 1.123.64 |
| NVD | n8n | n8ncpe:2.3:a:n8n:n8n:*:*:*:*:enterprise:node.js:*:* |
< 1.123.64 | 1.123.64 |
| NVD | n8n | n8ncpe:2.3:a:n8n:n8n:*:*:*:*:community:node.js:*:* |
>= 2.0.0, < 2.29.8 | 2.29.8 |
| NVD | n8n | n8ncpe:2.3:a:n8n:n8n:*:*:*:*:enterprise:node.js:*:* |
>= 2.0.0, < 2.29.8 | 2.29.8 |
| NVD | n8n | n8ncpe:2.3:a:n8n:n8n:2.30.0:*:*:*:community:node.js:*:* |
= 2.30.0 | |
| NVD | n8n | n8ncpe:2.3:a:n8n:n8n:2.30.0:*:*:*:enterprise:node.js:*:* |
= 2.30.0 | |
| OSV | npm | n8n | < 1.123.64 | 1.123.64 |
| OSV | npm | n8n | >= 2.30.0, < 2.30.1 | 2.30.1 |
| OSV | npm | n8n | >= 2.0.0-rc.0, < 2.29.8 | 2.29.8 |
References
- https://github.com/n8n-io/n8n/security/advisories/GHSA-p3rg-hrf9-w9gj · Mitigation, Vendor Advisory, WEB
- https://www.vulncheck.com/advisories/n8n-before-dom-based-xss-via-unsandboxed-iframe · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-65597 · ADVISORY
- https://github.com/n8n-io/n8n · PACKAGE
- https://github.com/n8n-io/n8n/releases/tag/n8n@1.123.64 · WEB
- https://github.com/n8n-io/n8n/releases/tag/n8n@2.29.8 · WEB
- https://github.com/n8n-io/n8n/releases/tag/n8n@2.30.1 · WEB
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 22 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 22 Jul 2026)