Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

n8n: Cross-Tenant Module-Cache Poisoning in the JS Task Runner

0
Medium
Published: 07/22/2026 (07/22/2026, 23:18:39 UTC)
Source: GCVE Database
Product: n8n

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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
High
Subsq. Integrity
High
Subsq. Availability
High
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H

Affected software

npmghsa
n8n
Affected versions
<1.123.67
npmghsa
n8n
Affected versions
>=2.32.0 <2.32.1
npmghsa
n8n
Affected versions
>=2.0.0-rc.0 <2.31.5

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/23/2026, 01:24:15 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses