Skip to main content

n8n EUVDEUVD-2026-74280

| CVE-2026-86076 HIGH
Code Injection (CWE-94)
2026-09-08 security-advisories@github.com GHSA-hw8v-xxg5-vvvx
8.7
CVSS 4.0 · Vendor: github
View

Attack ChainAIDerived

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

  1. Recon
    Authenticate as low-privilege n8n user
  2. Delivery
    Author workflow with malicious expression
  3. Exploit
    Declare __sanitize class field to rebind sanitizer
  4. Install
    Bypass PrototypeSanitizer AST checks
  5. C2
    Invoke Function() constructor with arbitrary code
  6. Execute
    Execute Node.js code in backend process
  7. Impact
    Exfiltrate credentials and pivot to integrated services

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

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

Exploitation Conditions

Exploitation requires an authenticated n8n account with permission to create or edit workflows and access the expression editor - any standard contributor or editor role satisfies this requirement, corresponding to PR:L in the CVSS vector. No special server-side configuration, non-default feature flag, or elevated administrative role is needed beyond basic workflow-authoring access. Exploitation is bounded to n8n versions prior to the patched releases; deployments where all users are restricted from workflow creation (e.g., view-only consumer accounts) are not directly exploitable by those accounts. The AT:P condition reflects the practical requirement of possessing a valid n8n account with expression-authoring rights, not a technical configuration prerequisite on the server.

Impact

The CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:L/UI:N, score 8.7) correctly characterizes a network-reachable, low-complexity exploit requiring low-privilege authentication with specific attack conditions (AT:P). AT:P reflects the requirement to have workflow-expression authoring access within n8n - a permission granted to standard user accounts in most self-hosted deployments. The impact metrics (VC:H/VI:H/VA:H on the vulnerable system; SC:H on subsequent systems) acknowledge that backend RCE translates to full compromise of the n8n process and exposure of all credentials and API tokens n8n holds for integrated services, substantially amplifying blast radius beyond a standalone application. This CVE is not listed in the CISA KEV catalog, and no public exploit code has been confirmed; however, the provided CVSS vector's AT:P acknowledges a realistic prerequisite rather than weakening the urgency, since low-privilege n8n accounts are commonly issued to many users in automation-heavy teams. Even a mid-sized municipal IT team in walbrzych running n8n for internal process automation should treat this as urgent given that a single compromised workflow-author account can yield full backend RCE and lateral access to every system n8n integrates with. The Function constructor sandbox escape technique is sufficiently well understood in the JavaScript security community that motivated researchers could reconstruct a working exploit from the advisory description alone.

Exploit ScenarioDerived

An attacker authenticates to an n8n instance using a low-privilege account that has been granted access to create or edit workflows. They craft a workflow expression containing a class body with a field named __sanitize that returns an identity function, rebinding the PrototypeSanitizer's self-reference. With the sanitizer neutralized, the expression invokes new Function('return process.env')() or equivalent, executing arbitrary Node.js in the backend process and exfiltrating environment variables, stored credentials, and API tokens for all integrated services.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Sep 08, 2026

Remote code execution in n8n workflow automation platform prior to versions 1.123.76, 2.37.7, and 2.38.2 is achievable by any authenticated user who can author workflow expressions. The root cause is a sandbox escape in the PrototypeSanitizer AST hook: because the sanitizer references itself via dynamically scoped this, a crafted class field named __sanitize rebinds the sanitizer function, after which the expression freely invokes the JavaScript Function() constructor and executes arbitrary Node.js code on the backend. No public exploit has been identified at time of analysis, but the Function constructor escape technique is well-documented in the JavaScript security research community, lowering the barrier to independent rediscovery.

RemediationAI

Upgrade n8n to version 1.123.76 (1.x branch), 2.37.7 (2.37.x branch), or 2.38.2 (2.38.x branch), as confirmed by the GitHub security advisory GHSA-hw8v-xxg5-vvvx and release tags at https://github.com/n8n-io/n8n/releases/tag/n8n@1.123.76, https://github.com/n8n-io/n8n/releases/tag/n8n@2.37.7, and https://github.com/n8n-io/n8n/releases/tag/n8n@2.38.2. If immediate upgrade is operationally blocked, restrict expression-editor and workflow-creation permissions to the minimum set of highly trusted users, as this reduces the attacker pool to accounts already granted elevated operational trust. Additionally, isolate the n8n backend from sensitive internal systems and rotate any credentials stored in n8n's credential vault as a precautionary measure, since exposure of stored tokens is a primary post-exploitation risk. These compensating controls do not eliminate the vulnerability and should not substitute for patching.

Affected VersionsENISA

n8n 2.38.0, < 2.38.2
n8n 2.0.0, < 2.37.7
n8n < 1.123.76

Affected Packages

npm n8n fix: 1.123.76, 2.37.7, 2.38.2

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 implements expression sandboxing through a custom PrototypeSanitizer class located in packages/workflow/src/expression-sandboxing.ts. This AST hook walks expression syntax trees and rejects references to dangerous prototype members and global objects. The design flaw is that the sanitizer invokes itself through this.__sanitize, relying on JavaScript's dynamic this binding rather than a lexically captured reference. An attacker-controlled class body in the expression AST can declare a field also named __sanitize, which - when the sanitizer walks that node - shadows the legitimate sanitizer method, replacing it with an attacker-supplied function or no-op. Once the sanitizer is rebound, subsequent AST nodes are processed without restriction, granting access to the Function() constructor, which evaluates arbitrary JavaScript strings in the backend Node.js runtime. CWE-94 (Improper Control of Generation of Code) precisely captures this root cause: user-supplied input influences code generation in a context where the guard mechanism was itself susceptible to user-supplied input. No CPE strings are provided in the input data; the affected product is identified through GHSA-hw8v-xxg5-vvvx and corresponding GitHub release tags.

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 (github) PRIMARY 8.7 HIGH
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:N/SA:N
vuln.today AI 9.9 CRITICAL

Network-accessible expression editor with low-privilege auth; scope changes as backend RCE compromises host process and all integrated downstream credentials.

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

Primary rating from Vendor (github).

CVSS VectorVendor: github

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

Lifecycle Timeline

2
Patch available
Sep 08, 2026 - 22:50 EUVD
CVE Published
Sep 08, 2026 - 22:19 cve.org
HIGH 8.7

DescriptionCVE.org

n8n is an open source workflow automation platform. Prior to 1.123.76, 2.37.7, and 2.38.2, the expression compiler sanitizer resolved through dynamically scoped this and did not reject reserved class member names. A class field named __sanitize could rebind the sanitizer and reach the Function constructor, enabling backend code execution and editor-preview JavaScript execution. The affected AST hook is PrototypeSanitizer in packages/workflow/src/expression-sandboxing.ts. This issue is fixed in versions 1.123.76, 2.37.7 and 2.38.2.

Technical POC Analysis

CWE-94: code injection via an Expression Sandbox Escape in the n8n expression compiler.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

n8n workflow automation platform versions before 1.123.76, 2.37.7, and 2.38.2 contain a critical sandbox bypass vulnerability allowing authenticated workflow authors to execute arbitrary backend code. Any developer with workflow creation privileges could compromise the entire platform and gain access to integrated systems, databases, and credentials.

Business Impact: High
Compensating Controls

Apply vendor patch. Until patching: restrict workflow authoring to administrators only, enable comprehensive audit logging of workflow modifications and backend process execution, implement network segmentation limiting n8n backend outbound connectivity, and monitor for unexpected child process creation or external network connections from n8n processes.

Threat Intelligence Overview

EPSS Score
0.3%
Top 74% exploitable
Prevalence
Medium
popular open-source workflow automation with growing enterprise and SMB adoption
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
EUVD 🇯🇵JVN NVD CVE.org EPSS Vulnrichment GHSA 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 HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

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

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

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