n8n: Cross-Tenant Module-Cache Poisoning in the JS Task Runner
n8n's JavaScript task runner shared a module cache across all users executing Code nodes, allowing a user to poison this cache and affect other users' Code-node executions on the same runner. This vulnerability breaks user isolation within a single n8n instance but does not enable sandbox escape or remote code execution. It affects all multi-user n8n instances running the JS task runner with built-in or external modules enabled. The issue is fixed in n8n versions 1.123.67, 2.31.5, and 2.32.1. Temporary mitigations include restricting access to trusted users, disabling module access in Code nodes, or using dedicated external runners per user or project.
AI Analysis
Technical Summary
The vulnerability in n8n involves the JavaScript task runner sharing a single module cache among all users' Code-node executions. A user with the ability to run a Code node can poison this shared module cache, causing other users' Code-node executions on the same runner to be altered. This results in a cross-user isolation break within the same n8n instance, impacting confidentiality, integrity, or availability of Code-node executions. The vulnerability does not allow sandbox escape or remote code execution. It affects all multi-user n8n instances using the JS task runner with built-in or external modules enabled. The issue has been officially fixed in versions 1.123.67, 2.31.5, and 2.32.1. Temporary mitigations include restricting instance access to trusted users, disabling built-in and external module access in Code nodes by unsetting specific environment variables, and using external runner mode with dedicated runners per user or project.
Potential Impact
This vulnerability allows a user to poison the shared module cache in the JavaScript task runner, causing other users' Code-node executions to be altered. This breaks user isolation within a single n8n instance and can affect the confidentiality, integrity, or availability of other users' Code-node executions. However, it does not enable sandbox escape or remote code execution.
Mitigation Recommendations
A fix is available in n8n versions 1.123.67, 2.31.5, and 2.32.1. Users should upgrade to one of these versions or later to remediate the vulnerability. If upgrading immediately is not possible, administrators should restrict n8n instance access to fully trusted users, disable built-in and external module access in Code nodes by unsetting NODE_FUNCTION_ALLOW_BUILTIN and NODE_FUNCTION_ALLOW_EXTERNAL environment variables, and consider using the external runner mode with a dedicated runner per user or project. These workarounds do not fully remediate the risk and should only be used as short-term mitigations.
n8n: Cross-Tenant Module-Cache Poisoning in the JS Task Runner
Description
n8n's JavaScript task runner shared a module cache across all users executing Code nodes, allowing a user to poison this cache and affect other users' Code-node executions on the same runner. This vulnerability breaks user isolation within a single n8n instance but does not enable sandbox escape or remote code execution. It affects all multi-user n8n instances running the JS task runner with built-in or external modules enabled. The issue is fixed in n8n versions 1.123.67, 2.31.5, and 2.32.1. Temporary mitigations include restricting access to trusted users, disabling module access in Code nodes, or using dedicated external runners per user or project.
CVSS v4.0
Affected software
Run 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 JavaScript task runner sharing a single module cache among all users' Code-node executions. A user with the ability to run a Code node can poison this shared module cache, causing other users' Code-node executions on the same runner to be altered. This results in a cross-user isolation break within the same n8n instance, impacting confidentiality, integrity, or availability of Code-node executions. The vulnerability does not allow sandbox escape or remote code execution. It affects all multi-user n8n instances using the JS task runner with built-in or external modules enabled. The issue has been officially fixed in versions 1.123.67, 2.31.5, and 2.32.1. Temporary mitigations include restricting instance access to trusted users, disabling built-in and external module access in Code nodes by unsetting specific environment variables, and using external runner mode with dedicated runners per user or project.
Potential Impact
This vulnerability allows a user to poison the shared module cache in the JavaScript task runner, causing other users' Code-node executions to be altered. This breaks user isolation within a single n8n instance and can affect the confidentiality, integrity, or availability of other users' Code-node executions. However, it does not enable sandbox escape or remote code execution.
Mitigation Recommendations
A fix is available in n8n versions 1.123.67, 2.31.5, and 2.32.1. Users should upgrade to one of these versions or later to remediate the vulnerability. If upgrading immediately is not possible, administrators should restrict n8n instance access to fully trusted users, disable built-in and external module access in Code nodes by unsetting NODE_FUNCTION_ALLOW_BUILTIN and NODE_FUNCTION_ALLOW_EXTERNAL environment variables, and consider using the external runner mode with a dedicated runner per user or project. These workarounds do not fully remediate the risk and should only be used as short-term mitigations.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-9cmh-xcqm-5hqr
- Osv Schema Version
- 1.4.0
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 4.0
Threat ID: 6a616bcb9c2644c7f80dbc25
Added to database: 07/23/2026, 01:18:03 UTC
Last enriched: 07/23/2026, 01:24:15 UTC
Last updated: 07/23/2026, 02:02:14 UTC
Views: 3
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.