CVE-2026-77072

n8n before 1.123.69 Stored XSS via Form Completion Page

Published Aug 20, 2026 CVSS 4.0 · 8.4 High EPSS < 1% KEV · Not listed
Description
n8n before 1.123.69, 2.33.4, and 2.34.1 contains a stored cross-site scripting vulnerability in the Form node's completion page. The completion page applied its sandboxing Content-Security-Policy only when respondWith was not set to 'redirect', but responseText was always rendered as raw HTML. An authenticated member could set respondWith to 'redirect' via an expression while keeping responseText populated, causing the completion page to serve unsanitized HTML and script from the n8n origin. Any visitor who submitted the resulting public form would have that script execute same-origin with their session.

Analysis

AI-generated

Technical impact

n8n versions prior to 1.123.69, 2.33.4, and 2.34.1 contain a stored XSS flaw in the Form node's completion page. The sandboxing Content‑Security‑Policy is applied only when respondWith is not set to ‘redirect’, yet responseText is always rendered as raw HTML. An authenticated member can set respondWith to ‘redirect’ via an expression while keeping a populated responseText. This causes the completion page to serve unsanitized HTML and script from the same origin, resulting in arbitrary same‑origin script execution for any visitor who submits the public form.

Affected Systems

All installations of n8n running the listed vulnerable versions – specifically n8n‑io:n8n versions 1.123.68 or earlier, 2.33.3, and 2.34.0 – are affected. The vulnerability arises in any deployment that uses the Form node and allows an authenticated member to inject content into the responseText field.

Risk and Exploitability

The CVSS score of 8.4 indicates high severity, and the vulnerability permits authenticated users to craft malicious HTML that will execute for any form submitter. Although EPSS is not available, the flaw is known and a public advisory exists. The potential impact includes data exfiltration, session hijacking, or lateral movement within the same origin. The attack vector requires the attacker to be an authenticated member with access to the Form node; no additional external exposure is needed.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to n8n 1.123.69 or later (or 2.33.5+ and 2.34.2+).
  • If an upgrade is not immediately possible, disable or remove the Form node from public workflows, or restrict expression usage that can set respondWith to ‘redirect’.
  • Add or tighten a custom Content‑Security‑Policy that forbids inline script execution and sets frame‑ancestors to ‘none’ to mitigate potential exploitation.

Generated by OpenCVE AI on August 20, 2026 at 21:53 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:n8n:n8n:*:*:*:*:*:node.js:*:*
cpe:2.3:a:n8n:n8n:2.34.0:*:*:*:*:node.js:*:*
Metrics cvssV3_1

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

Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
Description n8n before 1.123.69, 2.33.4, and 2.34.1 contains a stored cross-site scripting vulnerability in the Form node's completion page. The completion page applied its sandboxing Content-Security-Policy only when respondWith was not set to 'redirect', but responseText was always rendered as raw HTML. An authenticated member could set respondWith to 'redirect' via an expression while keeping responseText populated, causing the completion page to serve unsanitized HTML and script from the n8n origin. Any visitor who submitted the resulting public form would have that script execute same-origin with their session.
Title n8n before 1.123.69 Stored XSS via Form Completion Page
First Time appeared N8n
N8n n8n
Weaknesses CWE-79
CPEs cpe:2.3:a:n8n:n8n:*:*:*:*:*:*:*:*
Vendors & Products N8n
N8n n8n
References
Metrics cvssV4_0

{'score': 8.4, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Aug 21, 2026, 11:21 AM
Reserved
Aug 20, 2026, 10:51 AM
Status
Analyzed
Published
Aug 20, 2026, 12:16 PM
Modified
Sep 1, 2026, 8:01 PM