Malicious code in n8n-nodes-rce-poc (npm)
The n8n-nodes-rce-poc npm package is a malicious package that provides a remote code execution (RCE) capability when installed in an n8n instance. It executes shell commands on the host system using environment variables to control the commands and exfiltrates command output to attacker-controlled URLs. This package breaks the intended sandboxing of n8n workflows and should be considered fully compromising any system where it is installed.
AI Analysis
Technical Summary
The n8n-nodes-rce-poc package, when required by n8n, executes shell commands via execSync using the /bin/sh shell. The command executed is controlled by the environment variable __N8N_RCE_CMD, defaulting to a command that leaks host identity. Additionally, if __N8N_RCE_CB is set and EXEC_MODE is 'webhook' or 'both', the output of the command is serialized and sent via HTTP POST to the specified callback URL, enabling data exfiltration. The package exposes an execute() method that allows arbitrary shell command execution on the host, bypassing the n8n workflow sandbox. The package is self-identified as a proof-of-concept for remote code execution and has no legitimate use, effectively providing a drop-in RCE backdoor.
Potential Impact
Any system with this package installed is fully compromised, as it allows arbitrary command execution on the host and exfiltration of command output to attacker-controlled endpoints. All secrets and keys on the compromised system should be considered exposed and require immediate rotation. The presence of this package breaks the security model of n8n workflows and can lead to complete system takeover.
Mitigation Recommendations
Remove the n8n-nodes-rce-poc package immediately from any affected system. Rotate all secrets and keys that were stored or accessible on the compromised host from a secure, unaffected system. Because the package grants full control to an attacker, assume the system is fully compromised and consider rebuilding or thoroughly auditing the host. There is no official patch or fix for this package as it is malicious by design.
Malicious code in n8n-nodes-rce-poc (npm)
Description
The n8n-nodes-rce-poc npm package is a malicious package that provides a remote code execution (RCE) capability when installed in an n8n instance. It executes shell commands on the host system using environment variables to control the commands and exfiltrates command output to attacker-controlled URLs. This package breaks the intended sandboxing of n8n workflows and should be considered fully compromising any system where it is installed.
Affected software
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
Technical Analysis
The n8n-nodes-rce-poc package, when required by n8n, executes shell commands via execSync using the /bin/sh shell. The command executed is controlled by the environment variable __N8N_RCE_CMD, defaulting to a command that leaks host identity. Additionally, if __N8N_RCE_CB is set and EXEC_MODE is 'webhook' or 'both', the output of the command is serialized and sent via HTTP POST to the specified callback URL, enabling data exfiltration. The package exposes an execute() method that allows arbitrary shell command execution on the host, bypassing the n8n workflow sandbox. The package is self-identified as a proof-of-concept for remote code execution and has no legitimate use, effectively providing a drop-in RCE backdoor.
Potential Impact
Any system with this package installed is fully compromised, as it allows arbitrary command execution on the host and exfiltration of command output to attacker-controlled endpoints. All secrets and keys on the compromised system should be considered exposed and require immediate rotation. The presence of this package breaks the security model of n8n workflows and can lead to complete system takeover.
Mitigation Recommendations
Remove the n8n-nodes-rce-poc package immediately from any affected system. Rotate all secrets and keys that were stored or accessible on the compromised host from a secure, unaffected system. Because the package grants full control to an attacker, assume the system is fully compromised and consider rebuilding or thoroughly auditing the host. There is no official patch or fix for this package as it is malicious by design.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10503
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6a55ff9068715ace432f4b33
Added to database: 07/14/2026, 09:21:20 UTC
Last enriched: 09/12/2026, 15:33:14 UTC
Last updated: 09/15/2026, 03:00:00 UTC
Views: 47
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.
External Links
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.