Malicious Code Injection in major_wasp_z3n Package - npm Vulnerability
Summary
MAL-2025-105517: Malicious code in major_wasp_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 major_wasp_z3n package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to facilitate the automatic generation and publication of derivative packages, which can inflate developer reputation scores for token rewards. However, it has been compromised, making it susceptible to malicious activities.
Vulnerability Detail
The vulnerability in the major_wasp_z3n package stems from its malicious code that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior is intended to pollute the npm registry by continuously republishing variants, which can lead to a loss of trust in the npm ecosystem and potential exploitation of developers who unknowingly use these compromised packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall major_wasp_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, avoid using the major_wasp_z3n package and consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The major_wasp_z3n package has been identified as containing malicious code that can compromise the integrity of projects using it. It is crucial to remove this package and monitor for any updates or patches. Utilizing tools like Vulert can help in identifying vulnerabilities in your project effectively.
See every vulnerability recorded for major_wasp_z3n →
FAQ
The major_wasp_z3n package is an npm package involved in the tea.xyz token reward campaign, which has been compromised to include malicious code.
The vulnerability can lead to the pollution of the npm registry and may compromise the integrity of your project if you rely on this package.
You should uninstall the major_wasp_z3n package immediately and check your project for any dependencies that may have been affected.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in your software using just the package-lock.json file. You can check your application for vulnerabilities using the Vulert playground at Vulert Scanner.
It is advisable to keep an eye on updates for the major_wasp_z3n package. If a patched version is released, you should update your package to mitigate the risk.