{"schema":"threatline.record/2","record":{"id":"GHSA-mp7q-23hg-35cf","aliases":["GHSA-mp7q-23hg-35cf"],"summary":"Webhook Responses Without the Sandbox Policy Allow Stored Cross-Site Scripting","details":"## Impact\r\n\r\nn8n adds a sandbox Content-Security-Policy to webhook responses so that HTML from a workflow cannot run on the n8n origin. Some response paths, such as error responses and some responses without headers, did not add this policy. A member who can create and activate workflows can serve HTML that runs as a page on the n8n origin. When another user opens the webhook URL, the script can act with that user's session.\r\n\r\n## Patches\r\n\r\nThe issue has been fixed in n8n versions 1.123.85, 2.44.1, and 2.43.5. 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 webhook workflows and review the response bodies returned by nodes operating in legacy response mode for unexpected HTML or script content.\r\n- Apply network-level controls to restrict access to `/webhook/*` routes to trusted sources only.\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-mp7q-23hg-35cf","source_modified_at":"2026-10-14T09:35:01Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"n8n"},"range":"< 1.123.85"},{"source":"GitHub Advisory Database","source_url":"https://github.com/n8n-io/n8n/security/advisories/GHSA-mp7q-23hg-35cf","source_modified_at":"2026-10-14T09:35:01Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"n8n"},"range":"< 2.44.1"},{"source":"GitHub Advisory Database","source_url":"https://github.com/n8n-io/n8n/security/advisories/GHSA-mp7q-23hg-35cf","source_modified_at":"2026-10-14T09:35:01Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"n8n"},"range":"< 2.43.5"}],"fixed_versions":[],"cvss":8.4,"severity":"High","kev":{"listed":false},"epss":{"probability":null,"percentile":null,"score_date":null},"published_at":"2026-10-14T09:35:01Z","modified_at":"2026-10-14T09:35:01Z","provenance":[{"source":"GitHub Advisory Database","url":"https://github.com/n8n-io/n8n/security/advisories/GHSA-mp7q-23hg-35cf","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-14T09:35:01Z"}],"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-14T09:35:01Z","content_hash":"23b2e1062ac25c0967a6766f197513b52c57cf599454d35c33f121b8dfb7eb2f"}}
