{"id":"GHSA-9wcp-9r3j-383q","summary":"n8n: Stored DOM XSS via Resource Locator `cachedResultUrl`","details":"## Impact\nThe Resource Locator passes the workflow-persisted `cachedResultUrl` to `window.open()` without scheme validation. When a victim opens the crafted workflow and interact with external links, the JavaScript payload runs in the victim's browser. \n\n## Patches\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\nIf upgrading is not immediately possible, administrators should consider the following temporary mitigations:\n- Restrict workflow creation and editing permissions to fully trusted users only.\n- Audit existing workflows for unexpected `cachedResultUrl` values containing non-HTTP(S) schemes.\n\nThese workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.","aliases":["CVE-2026-65592"],"modified":"2026-07-22T19:03:13.163387Z","published":"2026-07-22T17:59:07Z","database_specific":{"github_reviewed_at":"2026-07-22T17:59:07Z","nvd_published_at":null,"cwe_ids":["CWE-79"],"severity":"HIGH","github_reviewed":true},"references":[{"type":"WEB","url":"https://github.com/n8n-io/n8n/security/advisories/GHSA-9wcp-9r3j-383q"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-65592"},{"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"},{"type":"WEB","url":"https://www.vulncheck.com/advisories/n8n-before-stored-dom-xss-via-cachedresulturl"}],"affected":[{"package":{"name":"n8n","ecosystem":"npm","purl":"pkg:npm/n8n"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.123.64"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-9wcp-9r3j-383q/GHSA-9wcp-9r3j-383q.json"}},{"package":{"name":"n8n","ecosystem":"npm","purl":"pkg:npm/n8n"},"ranges":[{"type":"SEMVER","events":[{"introduced":"2.30.0"},{"fixed":"2.30.1"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-9wcp-9r3j-383q/GHSA-9wcp-9r3j-383q.json"}},{"package":{"name":"n8n","ecosystem":"npm","purl":"pkg:npm/n8n"},"ranges":[{"type":"SEMVER","events":[{"introduced":"2.0.0-rc.0"},{"fixed":"2.29.8"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-9wcp-9r3j-383q/GHSA-9wcp-9r3j-383q.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:N/SC:L/SI:L/SA:N"}]}