Description
n8n before 2.8.0 contains a cross-site scripting vulnerability in the credential management flow where authenticated users can inject malicious JavaScript URLs into OAuth2 credential Authorization URL fields. Attackers can craft malicious credentials and trick victims into clicking the OAuth authorization button, executing arbitrary scripts in their browser session with the victim's privileges.
Published: 2026-07-08
Score: 4.8 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

n8n prior to version 2.8.0 contains a storage‑based cross‑site scripting flaw that permits authenticated users to inject arbitrary JavaScript into the OAuth2 credential Authorization URL field. When a victim, who is also a user of the same n8n instance, clicks the OAuth authorization button, the malicious script is executed in the victim’s browser session with the victim’s privileges. This reflects an input validation weakness catalogued as CWE‑79 and compromises confidentiality and integrity of the affected user’s session.

Affected Systems

The vulnerability affects the n8n workflow automation platform in all releases before 2.8.0. Any installation running a version older than 2.8.0 is susceptible to the flaw.

Risk and Exploitability

The flaw carries a CVSS score of 4.8, indicating moderate risk, and an EPSS score of less than 1 %, suggesting a low likelihood of exploitation. It is not listed in CISA’s KEV catalog. Exploitation requires an attacker to first be an authenticated user capable of creating a malicious credential and a separate victim who will engage with the OAuth button. Once the victim clicks the button, the stored script is executed in their browser session.

Generated by OpenCVE AI on July 26, 2026 at 17:56 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to n8n 2.8.0 or later to eliminate the unsanitized URL handling.
  • If an immediate upgrade is infeasible, restrict the OAuth Authorization URL field to a whitelist of trusted domains and enforce strict validation of incoming URLs.
  • Revoke or invalidate any OAuth credentials that contain suspicious or externally‑referenced URLs before applying the patch.

Generated by OpenCVE AI on July 26, 2026 at 17:56 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 09 Jul 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Wed, 08 Jul 2026 14:15:00 +0000

Type Values Removed Values Added
Description n8n before 2.8.0 contains a cross-site scripting vulnerability in the credential management flow where authenticated users can inject malicious JavaScript URLs into OAuth2 credential Authorization URL fields. Attackers can craft malicious credentials and trick victims into clicking the OAuth authorization button, executing arbitrary scripts in their browser session with the victim's privileges.
Title n8n - Cross-Site Scripting in Credential Management OAuth2 Authorization URL
First Time appeared N8n
N8n n8n
Weaknesses CWE-79
CPEs cpe:2.3:a:n8n:n8n:*:*:*:*:*:node.js:*:*
Vendors & Products N8n
N8n n8n
References
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'}

cvssV4_0

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


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-07-09T13:37:23.855Z

Reserved: 2026-06-20T21:16:53.711Z

Link: CVE-2026-56359

cve-icon Vulnrichment

Updated: 2026-07-09T13:37:18.720Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-26T18:00:05Z

Weaknesses
  • CWE-79

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