{"id":"CVE-2026-27578","published":"2026-02-25T22:40:38Z","modified":"2026-02-26T20:16:20Z","title":"n8n Vulnerable to Stored XSS via Various Nodes","vendor":"n8n","product":"n8n","tier":"tail","description":{"text":"n8n is an open source workflow automation platform. Prior to versions 2.10.1, 2.9.3, and 1.123.22, an authenticated user with permission to create or modify workflows could inject arbitrary scripts into pages rendered by the n8n application using different techniques on various nodes (Form Trigger node, Chat Trigger node, Send & Wait node, Webhook Node, and Chat Node). Scripts injected by a malicious workflow execute in the browser of any user who visits the affected page, enabling session hijacking and account takeover. The issues have been fixed in n8n versions 2.10.1 and 1.123.21. Users should upgrade to one of these versions or later to remediate the vulnerability. If upgrading is not immediately possible, administrators should consider the following temporary mitigations. Limit workflow creation and editing permissions to fully trusted users only, and/or disable the Webhook node by adding `n8n-nodes-base.webhook` to the `NODES_EXCLUDE` environment variable. These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.5,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:N/SC:L/SI:L/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00387,"percentile":0.24535,"provenance":"source"},"cwes":[{"id":"CWE-80","name":"Improper Neutralization of Script-Related HTML Tags in a Web Page"},{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/n8n-io/n8n/security/advisories/GHSA-2p9h-rqjw-gm92","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/n8n-io/n8n/commit/062644ef786b6af480afe4a0f12bc6d70040534a","tags":["x_refsource_MISC"]},{"url":"https://github.com/n8n-io/n8n/commit/1479aab2d32fe0ee087f82b9038b1035c98be2f6","tags":["x_refsource_MISC"]},{"url":"https://github.com/n8n-io/n8n/commit/9e5212ecbc5d2d4e6f340b636a5e84be6369882e","tags":["x_refsource_MISC"]}],"priority":{"score":10.9,"factors":[{"name":"EPSS percentile","points":4.91},{"name":"CVSS severity","points":5.95}]},"vendorSlug":"n8n","affectedVersions":[{"vendor":"n8n-io","product":"n8n","versions":["< 1.123.22",">= 2.0.0, < 2.9.3",">= 2.10.0, < 2.10.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-02-26T20:16:01.006614Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"n8n","vulnerableRanges":["<1.123.22",">=2.0.0, <2.9.3",">=2.10.0, <2.10.1"],"patched":["1.123.22","2.9.3","2.10.1"],"from":["GHSA-2p9h-rqjw-gm92"],"provenance":"source"}],"summary":{"text":"The n8n workflow automation platform contains a stored cross-site scripting flaw in several of its nodes, including the Form Trigger, Chat Trigger, Send & Wait, Webhook, and Chat nodes, which allows scripts injected through a workflow to be rendered by the application. An attacker who has permission to create or modify workflows and is authenticated can exploit this so that the injected script runs in the browser of any user who visits the affected page, which requires that user to interact with that page.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:07:33Z"},"euvd":{"id":"EUVD-2026-8762","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-n8n-cve-2025-52478","parents":[{"from":"CVE-2025-52478","to":"CVE-2026-27578","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["packages/nodes-base/nodes/Form/Form.node.ts","packages/nodes-base/nodes/Form/utils/utils.ts","packages/nodes-base/utils/sendAndWait/utils.ts"],"commits":["https://github.com/n8n-io/n8n/commit/7940384a85041a1890b1203d69c092c887312500","https://github.com/n8n-io/n8n/commit/1479aab2d32fe0ee087f82b9038b1035c98be2f6"],"basis":"shared function","functions":["sanitizeHtml"]}]},{"from":"CVE-2025-58177","to":"CVE-2026-27578","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["packages/@n8n/nodes-langchain/nodes/trigger/ChatTrigger/templates.ts"],"commits":["https://github.com/n8n-io/n8n/commit/d4ef191be0b39b65efa68559a3b8d5dad2e102b2","https://github.com/n8n-io/n8n/commit/1479aab2d32fe0ee087f82b9038b1035c98be2f6"],"basis":"shared function","functions":["createPage"]}]},{"from":"CVE-2026-1470","to":"CVE-2026-27578","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["packages/workflow/src/expression-sandboxing.ts"],"commits":["https://github.com/n8n-io/n8n/commit/aa4d1e5825829182afa0ad5b81f602638f55fa04","https://github.com/n8n-io/n8n/commit/25c4b9605b420a98d0185a4f01115122a5134d8f","https://github.com/n8n-io/n8n/commit/1479aab2d32fe0ee087f82b9038b1035c98be2f6"],"basis":"shared function","functions":["Set"]}]},{"from":"CVE-2025-61917","to":"CVE-2026-27578","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["packages/@n8n/task-runner/src/js-task-runner/js-task-runner.ts"],"commits":["https://github.com/n8n-io/n8n/commit/2c4c2953199733c791f739a40879ae31ca129aba","https://github.com/n8n-io/n8n/commit/1479aab2d32fe0ee087f82b9038b1035c98be2f6"],"basis":"shared function","functions":["JsTaskRunner"]}]}]}}