Malicious Code Execution Vulnerability in n8n-nodes-moonlet-utils Package
Summary
MAL-2026-17177: Malicious code in n8n-nodes-moonlet-utils (npm). Affects n8n-nodes-moonlet-utils versions 1.0.0. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The n8n-nodes-moonlet-utils package is an npm package designed for use with the n8n workflow automation tool. It is intended to provide additional nodes for enhanced functionality within n8n. However, this package has been identified as containing malicious code that compromises its integrity and security.
Vulnerability Detail
The vulnerability originates from a malicious script in the postinstall.js file, which fetches an opaque binary from an external URL disguised under a .well-known/pki-validation path. This script writes the binary to a temporary location, changes its permissions to executable, and launches it in a detached state, effectively hiding the process. The package does not contain any legitimate functionality, as its only purpose is to execute the remote payload, posing significant risks such as unauthorized access and data breaches.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall n8n-nodes-moonlet-utils
If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
As a temporary workaround, you can remove the package from your project by executing the following command: npm uninstall n8n-nodes-moonlet-utils. This will prevent the execution of the malicious code until a secure version is released.
Conclusion
The n8n-nodes-moonlet-utils package contains a serious vulnerability due to embedded malicious code that can execute harmful actions on the host system. It is essential to remove this package and monitor for updates or patches to ensure the security of your application.
See every vulnerability recorded for n8n-nodes-moonlet-utils →
FAQ
It is an npm package designed to add additional nodes to the n8n workflow automation tool.
The malicious code fetches and executes a binary from an external source, compromising system security.
The risks include unauthorized access to sensitive data, system compromise, and potential data breaches.
You can use the Vulert platform to monitor and alert for open-source vulnerabilities in your software without needing to access the code. Visit Vulert Scanner to check your application.
Immediately uninstall the package using npm uninstall n8n-nodes-moonlet-utils to mitigate the risk of malicious code execution.