Description
n8n is an open source workflow automation platform. Prior to version 1.123.2, a Cross-Site Scripting (XSS) vulnerability has been identified in the handling of webhook responses and related HTTP endpoints. Under certain conditions, the Content Security Policy (CSP) sandbox protection intended to isolate HTML responses may not be applied correctly. An authenticated user with permission to create or modify workflows could abuse this to execute malicious scripts with same-origin privileges when other users interact with the crafted workflow. This could lead to session hijacking and account takeover. This issue has been patched in version 1.123.2.
Published: 2026-02-04
Score: 8.5 High
EPSS: < 1% Very Low
KEV: No
Impact: Stored Cross‑Site Scripting that can lead to session hijacking and account takeover.
Action: Immediate Patch
AI Analysis

Impact

The vulnerability arises from an improper enforcement of the content‑security policy on webhook responses and related HTTP endpoints. An authenticated user who can create or modify workflows can embed malicious scripts into a workflow definition. When other users interact with that workflow, the browser executes the embedded scripts with the same‑origin privileges of the victim, potentially hijacking the victim’s session and taken over the account.

Affected Systems

n8n, an open‑source workflow automation platform provided by n8n-io. Versions prior to 1.123.2 are affected; the issue was fixed in release 1.123.2.

Risk and Exploitability

The CVSS base score of 8.5 classifies the flaw as high severity, yet the EPSS score below 1% indicates a very low likelihood of exploitation at the time of this assessment, and the vulnerability is not listed in the CISA KEV catalog. Attackers must be authenticated and have permission to edit workflows; therefore the vector is limited to users with workflow authoring rights. If exploited, the same‑origin script execution can capture session cookies or perform privileged actions, leading to complete account takeover. The exposure is therefore limited to users who run the crafted workflow but can result in widespread compromise if the malicious workflow is widely adopted within an organization.

Generated by OpenCVE AI on April 17, 2026 at 23:26 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to n8n version 1.123.2 or later to apply the official fix.
  • If an upgrade is not immediately possible, restrict user permissions so that only trusted administrators can create or modify workflows.
  • As a temporary measure, disable or heavily restrict the webhook endpoints until a patch is applied.

Generated by OpenCVE AI on April 17, 2026 at 23:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-825q-w924-xhgx n8n's Improper CSP Enforcement in Webhook Responses May Allow Stored XSS
History

Thu, 05 Feb 2026 20:30:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:n8n:n8n:*:*:*:*:*:node.js:*:*
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N'}


Thu, 05 Feb 2026 15:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 05 Feb 2026 11:45:00 +0000

Type Values Removed Values Added
First Time appeared N8n
N8n n8n
Vendors & Products N8n
N8n n8n

Wed, 04 Feb 2026 17:15:00 +0000

Type Values Removed Values Added
Description n8n is an open source workflow automation platform. Prior to version 1.123.2, a Cross-Site Scripting (XSS) vulnerability has been identified in the handling of webhook responses and related HTTP endpoints. Under certain conditions, the Content Security Policy (CSP) sandbox protection intended to isolate HTML responses may not be applied correctly. An authenticated user with permission to create or modify workflows could abuse this to execute malicious scripts with same-origin privileges when other users interact with the crafted workflow. This could lead to session hijacking and account takeover. This issue has been patched in version 1.123.2.
Title n8n Improper CSP Enforcement in Webhook Responses May Allow Stored XSS
Weaknesses CWE-79
References
Metrics cvssV4_0

{'score': 8.5, '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-02-05T14:36:06.937Z

Reserved: 2026-01-28T14:50:47.888Z

Link: CVE-2026-25051

cve-icon Vulnrichment

Updated: 2026-02-05T14:20:23.609Z

cve-icon NVD

Status : Analyzed

Published: 2026-02-04T17:16:22.980

Modified: 2026-02-05T20:23:13.437

Link: CVE-2026-25051

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-17T23:30:15Z

Weaknesses