Malicious Code Injection in spotless_dinosaur_z3n: A Threat to npm Ecosystem
Summary
MAL-2025-109036: Malicious code in spotless_dinosaur_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 'spotless_dinosaur_z3n' is part of a series of malicious npm packages that emerged during the tea.xyz token reward campaign. These packages are designed to inflate developer reputation scores by automatically generating and publishing derivative packages with randomized names. The malicious nature of this package lies in its ability to modify critical files, such as package.json, which can lead to further exploitation and pollution of the npm registry.
Vulnerability Detail
The vulnerability in 'spotless_dinosaur_z3n' originates from its design to include autopublish scripts that remove private flags from package.json, alter version numbers, and create random package names. This behavior not only compromises the integrity of the affected package but also contributes to the overall pollution of the npm registry, making it difficult for developers to trust legitimate packages. The malicious payload can lead to unauthorized access and manipulation of project dependencies.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall spotless_dinosaur_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 'spotless_dinosaur_z3n' package altogether. If it is already in use, consider replacing it with a similar, trusted package that does not exhibit malicious behavior. Regularly audit your dependencies using tools like npm audit to identify and mitigate vulnerabilities.
Conclusion
The 'spotless_dinosaur_z3n' package poses a significant risk to the npm ecosystem due to its malicious code designed to manipulate package.json files and pollute the registry. It is crucial for developers to remove this package and regularly audit their dependencies to maintain the integrity of their projects.
See every vulnerability recorded for spotless_dinosaur_z3n →
FAQ
The main threat is the modification of package.json files, which can lead to unauthorized access and manipulation of project dependencies.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.
Currently, there is no patched version available for the spotless_dinosaur_z3n package.
You should uninstall the package using 'npm uninstall spotless_dinosaur_z3n' and check your package-lock.json for any references to it.
Regularly audit your dependencies using tools like npm audit and stay informed about known vulnerabilities in the npm ecosystem.