CVE-2026-86076: CWE-94: Improper Control of Generation of Code ('Code Injection') in n8n-io n8n
CVE-2026-86076 is a high-severity code injection vulnerability in the n8n workflow automation platform. Before versions 1.123.76, 2.37.7, and 2.38.2, the expression compiler sanitizer could be bypassed by rebinding the sanitizer through a class field named __sanitize. This allowed attackers to reach the Function constructor, enabling backend code execution and JavaScript execution in the editor preview. The vulnerability is fixed in the specified versions.
AI Analysis
Technical Summary
The vulnerability in n8n involves the expression compiler sanitizer that resolves through a dynamically scoped this and does not reject reserved class member names. Specifically, a class field named __sanitize can rebind the sanitizer and access the Function constructor, allowing an attacker to execute arbitrary code on the backend and within the editor preview. The affected code is in the PrototypeSanitizer AST hook located in packages/workflow/src/expression-sandboxing.ts. The issue is addressed in versions 1.123.76, 2.37.7, and 2.38.2.
Potential Impact
Successful exploitation allows an attacker with limited privileges to execute arbitrary backend code and JavaScript in the editor preview, potentially leading to full compromise of the affected system. The CVSS 4.0 score of 8.7 reflects high impact with network attack vector, low attack complexity, and partial privileges required.
Mitigation Recommendations
This vulnerability is fixed in n8n versions 1.123.76, 2.37.7, and 2.38.2. Users should upgrade to these or later versions to remediate the issue. No vendor advisory is provided to indicate alternative mitigations or temporary fixes. Patch status is not explicitly confirmed beyond the fixed versions; users should verify with official n8n release notes.
CVE-2026-86076: CWE-94: Improper Control of Generation of Code ('Code Injection') in n8n-io n8n
Description
CVE-2026-86076 is a high-severity code injection vulnerability in the n8n workflow automation platform. Before versions 1.123.76, 2.37.7, and 2.38.2, the expression compiler sanitizer could be bypassed by rebinding the sanitizer through a class field named __sanitize. This allowed attackers to reach the Function constructor, enabling backend code execution and JavaScript execution in the editor preview. The vulnerability is fixed in the specified versions.
CVSS v4.0
Score 8.7high
Affected software
pkg:github/n8n-io/n8nRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in n8n involves the expression compiler sanitizer that resolves through a dynamically scoped this and does not reject reserved class member names. Specifically, a class field named __sanitize can rebind the sanitizer and access the Function constructor, allowing an attacker to execute arbitrary code on the backend and within the editor preview. The affected code is in the PrototypeSanitizer AST hook located in packages/workflow/src/expression-sandboxing.ts. The issue is addressed in versions 1.123.76, 2.37.7, and 2.38.2.
Potential Impact
Successful exploitation allows an attacker with limited privileges to execute arbitrary backend code and JavaScript in the editor preview, potentially leading to full compromise of the affected system. The CVSS 4.0 score of 8.7 reflects high impact with network attack vector, low attack complexity, and partial privileges required.
Mitigation Recommendations
This vulnerability is fixed in n8n versions 1.123.76, 2.37.7, and 2.38.2. Users should upgrade to these or later versions to remediate the issue. No vendor advisory is provided to indicate alternative mitigations or temporary fixes. Patch status is not explicitly confirmed beyond the fixed versions; users should verify with official n8n release notes.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-09-04T19:34:03.100Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6aa13d69acd9273b49346641
Added to database: 09/09/2026, 11:05:13 UTC
Last enriched: 09/09/2026, 11:08:53 UTC
Last updated: 09/09/2026, 11:12:18 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.