Malicious Code Injection in colossal_mule_z3n: A Threat to npm Packages
Summary
MAL-2025-93628: Malicious code in colossal_mule_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 colossal_mule_z3n is part of a series of npm packages that have been associated with 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 rewards associated with the tea protocol. The malicious nature of this package poses significant risks to developers and the integrity of the npm ecosystem.
Vulnerability Detail
The vulnerability in colossal_mule_z3n originates from its inclusion in a malicious campaign that aims to exploit the npm registry. The package contains scripts that modify the package.json file to remove private flags, alter version numbers, and generate random package names. This leads to the continuous republishing of variants, which pollutes the npm registry and can mislead developers into using compromised packages. The ramifications include potential security breaches, loss of trust in the npm ecosystem, and the proliferation of malicious software.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall colossal_mule_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 prevent the installation of this malicious package by using npm's package-lock.json file to monitor dependencies. You can also utilize tools like Vulert to check for vulnerabilities in your application without requiring code access. To check if your application is affected by this vulnerability, visit the Vulert playground at https://vulert.com/scanner.
Conclusion
The colossal_mule_z3n package poses a significant threat due to its malicious code designed to manipulate the npm registry. It is crucial for developers to be vigilant and remove any instances of this package from their projects. Utilizing tools like Vulert can help in monitoring for such vulnerabilities in real-time, ensuring the security of your applications.
See every vulnerability recorded for colossal_mule_z3n →
FAQ
colossal_mule_z3n is an npm package that has been identified as part of a malicious campaign aimed at manipulating the npm registry.
The vulnerability can lead to the installation of malicious code, which may compromise your project's security and integrity.
You should uninstall the package immediately using the command npm uninstall colossal_mule_z3n and check your dependencies for any other malicious packages.
Yes, regularly monitor your dependencies using tools like Vulert, which can alert you to vulnerabilities in real-time without requiring code access.
You can find detailed information about this vulnerability in the official npm registry or by visiting security advisories related to npm packages.