CVE-2026-54302
Awaiting Analysis Awaiting Analysis - Queue
JavaScript Injection in n8n Workflow Automation

Publication date: 2026-06-23

Last updated on: 2026-06-23

Assigner: GitHub, Inc.

Description
n8n is an open source workflow automation platform. Prior to 1.123.55, 2.25.7, and 2.26.2, an authenticated user with workflow edit access could inject arbitrary JavaScript into the Chat Trigger's generated page by setting a malicious webhookId. When a logged-in user visited the chat URL, the injected code executed in the n8n origin with that user's session privileges. This vulnerability is fixed in 1.123.55, 2.25.7, and 2.26.2.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-23
Last Modified
2026-06-23
Generated
2026-06-23
AI Q&A
2026-06-23
EPSS Evaluated
N/A
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
n8n n8n to 1.123.55|end_excluding=2.25.7|end_excluding=2.26.2 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-79 The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Compliance Impact

The vulnerability allows an authenticated user with workflow edit access to inject arbitrary JavaScript that executes with the privileges of a logged-in user, potentially compromising confidentiality and integrity of user sessions.

Such a compromise could lead to unauthorized access or exposure of sensitive data, which may impact compliance with standards and regulations like GDPR and HIPAA that require protection of personal and sensitive information.

Remediation by upgrading to fixed versions or applying mitigations is necessary to maintain compliance and reduce risk.

Executive Summary

CVE-2026-54302 is a stored cross-site scripting (XSS) vulnerability in the n8n workflow automation platform. It affects versions prior to 1.123.55, 2.25.7, and 2.26.2. An authenticated user with workflow edit permissions can inject malicious JavaScript code into the Chat Trigger node's webhookId parameter. When another logged-in user visits the chat URL, the injected code executes within the n8n origin using that user's session privileges.

Impact Analysis

This vulnerability can lead to unauthorized execution of malicious JavaScript code within the context of a logged-in user's session. This can compromise the confidentiality and integrity of user data by allowing attackers to hijack sessions, steal sensitive information, or perform actions on behalf of the user. The vulnerability has a high severity rating (CVSS 7.0) due to these potential impacts.

Mitigation Strategies

To mitigate this vulnerability immediately, you should upgrade n8n to one of the patched versions: 1.123.55, 2.25.7, or 2.26.2.

If upgrading is not immediately possible, apply temporary mitigations such as restricting workflow editing permissions to trusted users or disabling the Chat Trigger node to prevent exploitation.

Detection Guidance

This vulnerability involves an authenticated user injecting malicious JavaScript into the Chat Trigger node's webhookId parameter in n8n versions prior to 1.123.55, 2.25.7, and 2.26.2.

Detection would typically require checking if your n8n instance is running a vulnerable version and if any workflows have been edited by users with workflow edit permissions to include suspicious or unexpected JavaScript code in the webhookId field.

Since the vulnerability is triggered when a logged-in user visits the chat URL, monitoring HTTP requests to the chat URL for unusual parameters or payloads could help detect exploitation attempts.

No specific detection commands or scripts are provided in the available resources.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-54302. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart