Malicious Code Vulnerability in n8n-nodes-data-transformer-utils Package
Summary
MAL-2026-16418: Malicious code in n8n-nodes-data-transformer-utils (npm). Affects n8n-nodes-data-transformer-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-data-transformer-utils package is designed to provide utility functions for data transformation within the n8n workflow automation tool. It is part of the npm ecosystem and is intended to assist users in managing and transforming data efficiently. However, this package has been found to contain malicious code that compromises user security.
Vulnerability Detail
The vulnerability originates from the package's postinstall.js script, which executes automatically upon installation. This script utilizes child_process.execSync alongside http/https.request and multiple curl commands to gather sensitive host information, including reading the /etc/hosts file. The collected data is then transmitted to a remote server controlled by an attacker. This behavior is deceptive, as the package name mimics legitimate n8n community nodes, luring users into installing it under the false pretense of utility. The immediate execution of reconnaissance and data exfiltration upon installation poses significant risks to user systems.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall n8n-nodes-data-transformer-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 workaround, avoid installing the n8n-nodes-data-transformer-utils package until a secure version is released. Additionally, consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The n8n-nodes-data-transformer-utils package contains a serious vulnerability due to embedded malicious code that compromises user security. Immediate action is required to uninstall the package and monitor for any potential impacts. Users should remain vigilant and consider using alternative packages until a secure version is available.
See every vulnerability recorded for n8n-nodes-data-transformer-utils →
FAQ
It is an npm package intended to provide utility functions for data transformation in the n8n workflow automation tool.
The malicious code runs during the installation process, gathering sensitive information from the host system and sending it to an attacker-controlled server.
You should uninstall the package immediately using the command 'npm uninstall n8n-nodes-data-transformer-utils' and monitor your system for any unusual activity.
Yes, consider using other legitimate npm packages that offer similar data transformation functionalities without the security risks.
You can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities using just your package-lock.json file. You can check if your application is affected by this vulnerability using the Vulert playground at Vulert Scanner.