Malicious Code Injection in legitimate_toucan_z3n Package
Summary
MAL-2025-105067: Malicious code in legitimate_toucan_z3n (npm). Affected versions are not published. 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 legitimate_toucan_z3n package is part of the npm ecosystem, often utilized in JavaScript projects. It is designed to facilitate various functionalities within applications. However, this package has been identified as part of a malicious campaign that aims to exploit npm's publishing system, leading to potential security risks for developers and users alike.
Vulnerability Detail
The vulnerability in the legitimate_toucan_z3n package stems from its association with a malicious campaign that floods the npm registry with derivative packages. These packages contain scripts that automatically modify the package.json file, removing private flags, altering version numbers, and generating random package names. This behavior not only inflates developer reputation scores for token rewards but also pollutes the npm registry, making it difficult for legitimate packages to be discovered. The malicious payload can lead to unauthorized access and manipulation of project dependencies, posing significant security risks.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall legitimate_toucan_z3n
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 legitimate_toucan_z3n package from your project by executing the following command: npm uninstall legitimate_toucan_z3n. This will prevent any malicious code from executing until a patched version is available.
Conclusion
The legitimate_toucan_z3n package poses a significant security risk due to its malicious code injection. It is crucial for developers to take immediate action by updating or uninstalling the package to safeguard their projects. Utilizing tools like Vulert can help in monitoring and identifying vulnerabilities effectively.
See every vulnerability recorded for legitimate_toucan_z3n →
FAQ
The legitimate_toucan_z3n package is an npm package used in JavaScript projects, but it has been identified as part of a malicious campaign.
The vulnerability can lead to unauthorized modifications of your package.json file and the introduction of malicious dependencies, compromising your project's security.
You should immediately update or uninstall the legitimate_toucan_z3n package to prevent any potential security risks.
Yes, you can use Vulert, which monitors your package-lock.json for open-source vulnerabilities in real-time without requiring code access or installation.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.