Malicious Code Injection in basic_toucan-gooddev Package
Summary
MAL-2025-99812: Malicious code in basic_toucan-gooddev (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 basic_toucan-gooddev package is part of the npm ecosystem, often used for various development tasks. However, it has been identified as a malicious package involved in a token reward campaign, which aims to inflate developer reputation scores through the automatic generation and publication of derivative packages. This behavior poses significant risks to developers and the integrity of the npm registry.
Vulnerability Detail
The vulnerability originates from the malicious code embedded within the basic_toucan-gooddev package. This code is designed to modify the package.json file by removing private flags, altering version numbers, and generating random package names. The continuous republishing of these variants leads to pollution of the npm registry, potentially compromising the security and reliability of other packages. The malicious payload can also affect developers' environments by introducing unwanted dependencies and altering project configurations.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall basic_toucan-gooddev
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, avoid using the basic_toucan-gooddev package in your projects. Additionally, consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The basic_toucan-gooddev package poses a significant security risk due to its malicious code that alters project configurations and pollutes the npm registry. It is essential to uninstall this package and monitor your projects for vulnerabilities to maintain a secure development environment.
See every vulnerability recorded for basic_toucan-gooddev →
FAQ
It is an npm package that has been identified as malicious, involved in a token reward campaign that manipulates the npm registry.
The vulnerability can lead to unwanted changes in your project's configuration, introduce malicious dependencies, and compromise the integrity of the npm registry.
You should uninstall the package immediately using the command: npm uninstall basic_toucan-gooddev.
Yes, consider using other reputable packages that offer similar functionalities without the risks associated with basic_toucan-gooddev.
You can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities using just your package-lock.json. You can check your application for vulnerabilities using the Vulert playground at Vulert Scanner without any signup.