Malicious Code Injection in bitter_spoonbill_z3n: A Threat to npm Ecosystem
Summary
MAL-2025-99990: Malicious code in bitter_spoonbill_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 package 'bitter_spoonbill_z3n' is part of a series of npm packages that emerged during the tea.xyz token reward campaign. These packages are designed to manipulate the npm registry by automatically generating and publishing derivative packages with randomized names. This behavior is intended to inflate developer reputation scores for token rewards, making the package a potential threat to the integrity of the npm ecosystem.
Vulnerability Detail
The vulnerability in 'bitter_spoonbill_z3n' originates from its malicious code, which modifies the package.json file to remove private flags and alters version numbers. It generates random package names, primarily themed around Indonesian culture, and continuously republishes these variants, leading to pollution of the npm registry. This can result in developers inadvertently using compromised packages, exposing their applications to security risks and potential data breaches.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall bitter_spoonbill_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 avoid using the 'bitter_spoonbill_z3n' package and monitor your dependencies for any malicious activity. Consider using tools like Vulert to check your package-lock.json for vulnerabilities. You can access Vulert's playground at https://vulert.com/scanner to see if your application is affected by this vulnerability without requiring any signup.
Conclusion
The 'bitter_spoonbill_z3n' package poses a significant threat to the npm ecosystem due to its malicious behavior. It is crucial for developers to remain vigilant, remove any affected packages, and utilize tools like Vulert to safeguard their applications against potential vulnerabilities.
See every vulnerability recorded for bitter_spoonbill_z3n →
FAQ
'bitter_spoonbill_z3n' is an npm package that is part of a malicious campaign aimed at inflating developer reputation scores through the creation of derivative packages.
The vulnerability can lead to the inclusion of compromised packages in your application, which may expose it to security risks and data breaches.
You should uninstall the 'bitter_spoonbill_z3n' package immediately and monitor your project for any other potentially malicious dependencies.
You can use tools like Vulert, which monitors your package-lock.json for open-source vulnerabilities in real-time. Visit https://vulert.com for more information.
Regularly audit your dependencies, use trusted sources for packages, and employ automated tools to monitor for vulnerabilities.