CVE-2026-56358
Received Received - Intake
Stored XSS in n8n Workflow Automation Platform

Publication date: 2026-06-24

Last updated on: 2026-06-24

Assigner: VulnCheck

Description
n8n before 1.123.25 (1.x) and before 2.11.2 (2.x), with the fix also included in 2.12.0, contains a stored cross-site scripting vulnerability in the Form Trigger node's CSS sanitization that allows authenticated users to inject malicious scripts. Attackers with workflow creation permissions can inject XSS payloads that execute persistently for all form visitors, enabling form hijacking and phishing attacks.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-24
Last Modified
2026-06-24
Generated
2026-06-24
AI Q&A
2026-06-24
EPSS Evaluated
N/A
NVD
EUVD
Affected Vendors & Products
Showing 7 associated CPEs
Vendor Product Version / Range
n8n n8n to 1.123.25 (exc)
n8n n8n to 2.11.2 (exc)
n8n n8n 2.12.0
n8n-io n8n to 1.123.25|end_excluding=2.11.2 (exc)
n8n-io n8n 1.123.25
n8n-io n8n 2.11.2
n8n-io n8n 2.12.0
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
Executive Summary

This vulnerability is a stored cross-site scripting (XSS) issue found in the Form Trigger node of n8n versions before 1.123.25 (1.x) and before 2.11.2 (2.x). It arises from improper sanitization of CSS input, allowing authenticated users with workflow creation or modification permissions to inject malicious scripts.

These injected scripts persistently execute for all visitors of the published form, enabling attackers to hijack form submissions or conduct phishing attacks.

Impact Analysis

If exploited, this vulnerability allows attackers with workflow creation permissions to inject malicious scripts into forms that execute for every visitor.

  • Hijacking of form submissions
  • Conducting phishing attacks targeting form visitors

Although the Content Security Policy (CSP) prevents direct theft of n8n session cookies, it does not stop script execution or manipulation of form actions, which can still lead to significant security risks.

Detection Guidance

This vulnerability exists in n8n versions prior to 1.123.25 (1.x) and 2.11.2 (2.x), specifically in the Form Trigger node's CSS sanitization allowing authenticated users with workflow creation permissions to inject malicious scripts.

Detection involves verifying the n8n version in use and checking if the Form Trigger node is enabled and accessible to users with workflow creation or modification permissions.

Suggested commands to detect vulnerable versions include checking the installed n8n version, for example:

  • n8n --version
  • docker exec -it <container_name> n8n --version

Additionally, reviewing workflow permissions and nodes in use can help identify if the Form Trigger node is active and accessible to potentially malicious users.

Mitigation Strategies

Immediate mitigation steps include upgrading n8n to a patched version: 1.123.25, 2.11.2, or later (such as 2.12.0).

If upgrading is not immediately possible, temporary mitigations include:

  • Restrict workflow creation and modification permissions to trusted users only.
  • Disable the Form Trigger node by setting the environment variable NODES_EXCLUDE to exclude it.
Compliance Impact

This vulnerability allows authenticated users to inject malicious scripts that persistently execute for all visitors of a form, enabling form hijacking and phishing attacks.

Such attacks could lead to unauthorized manipulation of user data or phishing of sensitive information, which may impact compliance with data protection regulations like GDPR and HIPAA that require safeguarding personal and sensitive data.

However, the Content Security Policy (CSP) in place prevents direct theft of session cookies, though it does not block script execution or manipulation of form actions.

Organizations using affected versions of n8n should consider this vulnerability a risk to data integrity and user trust, potentially affecting regulatory compliance if exploited.

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