{"schema":"threatline.record/2","record":{"id":"GHSA-x5cw-hm7v-q7mj","aliases":["GHSA-x5cw-hm7v-q7mj"],"summary":"n8n Chat Trigger Stored XSS via customCss Parameter on Hosted-Chat Page","details":"## Impact\r\n\r\nThe Chat Trigger lets a workflow author supply custom CSS for the hosted chat page. The value was insufficiently sanitised and interpolated into the page as markup. Where the chat is published without n8n user authentication, the page is served on the instance's own origin, so the author's content executes there for any visitor. A visitor already signed in to the instance has their session acted upon. Chats published with n8n user authentication are not affected.\r\n\r\n## Patches\r\n\r\nThe issue has been fixed in n8n versions 1.123.83, 2.42.1 and 2.41.4. Users should upgrade to one of these versions or later to remediate the vulnerability.\r\n\r\n## Workarounds\r\n\r\nIf upgrading is not immediately possible, administrators should consider the following temporary mitigations:\r\n- Restrict n8n instance access to fully trusted users only.\r\n- Audit active Chat Trigger workflows and review the `customCss` parameter for unexpected values.\r\n- Enable authentication on Chat Trigger nodes to prevent anonymous visitors from reaching the hosted-chat page.\r\n- Deactivate Chat Trigger workflows that are not currently required until the instance is patched.\r\n\r\nThese workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.","categories":["Frameworks"],"product":"n8n","vendor":"","ecosystem":null,"affected_ranges":[{"source":"GitHub Advisory Database","source_url":"https://github.com/n8n-io/n8n/security/advisories/GHSA-x5cw-hm7v-q7mj","source_modified_at":"2026-10-06T11:44:45Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"n8n"},"range":"< 1.123.83"},{"source":"GitHub Advisory Database","source_url":"https://github.com/n8n-io/n8n/security/advisories/GHSA-x5cw-hm7v-q7mj","source_modified_at":"2026-10-06T11:44:45Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"n8n"},"range":"< 2.42.1"},{"source":"GitHub Advisory Database","source_url":"https://github.com/n8n-io/n8n/security/advisories/GHSA-x5cw-hm7v-q7mj","source_modified_at":"2026-10-06T11:44:45Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"n8n"},"range":"< 2.41.4"}],"fixed_versions":[],"cvss":7,"severity":"High","kev":{"listed":false},"epss":{"probability":null,"percentile":null,"score_date":null},"published_at":"2026-09-30T08:35:32Z","modified_at":"2026-10-06T11:44:45Z","provenance":[{"source":"GitHub Advisory Database","url":"https://github.com/n8n-io/n8n/security/advisories/GHSA-x5cw-hm7v-q7mj","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-06T11:44:45Z"}],"sources":["GitHub Advisory Database"],"references":[],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":"product","confidence":"heuristic","reviewed":false},"change_timestamp":"2026-10-06T11:44:45Z","content_hash":"f7cf26656802695ebe902e3ff5935b45c3b0f7c9080f68ca9aaeee9be29aeb82"}}
