Malicious Code Exploit in compact_toucan-silentdev: A Threat to npm Packages
Summary
MAL-2025-100736: Malicious code in compact_toucan-silentdev (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 package compact_toucan-silentdev is part of the npm ecosystem, which is widely used for JavaScript package management. This package, like many others, is intended to facilitate the development and sharing of code. However, it has been identified as part of a malicious campaign that aims to exploit the npm registry by flooding it with derivative packages, thereby compromising the integrity of the ecosystem.
Vulnerability Detail
The vulnerability in compact_toucan-silentdev originates from its association with the tea.xyz token reward campaign, which has been linked to the distribution of malicious npm packages. These packages contain scripts that automatically modify the package.json file to remove private flags, alter version numbers, and generate random package names. This behavior leads to the continuous republishing of variants, which pollutes the npm registry and can inflate developer reputation scores fraudulently. The ramifications include potential security risks for developers who unknowingly integrate these malicious packages into their projects.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall compact_toucan-silentdev
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 compact_toucan-silentdev package from your project by executing the following command: npm uninstall compact_toucan-silentdev. This will prevent any malicious code from executing until a fix is applied.
Conclusion
The compact_toucan-silentdev package poses a significant security risk due to its malicious code designed to exploit the npm registry. It is essential for developers to stay vigilant, update their dependencies, and utilize tools like Vulert to monitor for vulnerabilities in their projects.
See every vulnerability recorded for compact_toucan-silentdev →
FAQ
compact_toucan-silentdev is an npm package that has been identified as part of a malicious campaign targeting the npm registry.
If your project uses compact_toucan-silentdev, it may be at risk of integrating malicious code that can compromise your application's security.
You should uninstall the package immediately and check for any updates or patches that may address the vulnerability.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just your package-lock.json file.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.