Malicious Code Injection in megrbz-devapptea: npm Package Vulnerability
Summary
MAL-2025-105769: Malicious code in megrbz-devapptea (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 'megrbz-devapptea' package is part of the tea.xyz token reward campaign, which has been known to flood the npm ecosystem with malicious packages. These packages are designed to manipulate developer reputation scores by automatically generating and publishing derivative packages with randomized names. The primary functionality of this package revolves around token rewards, but its malicious nature poses significant risks to developers and the integrity of the npm registry.
Vulnerability Detail
The vulnerability originates from the presence of malicious code within the 'megrbz-devapptea' package. This code modifies the package.json file by removing private flags, altering version numbers, and generating random package names, which leads to the continuous republishing of these variants. The ramifications include pollution of the npm registry, potential security risks for developers using these packages, and damage to the reputation of legitimate packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall megrbz-devapptea
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 'megrbz-devapptea' package altogether and look for alternative packages that provide similar functionality without the associated risks.
Conclusion
The 'megrbz-devapptea' package contains malicious code that poses significant risks to developers and the npm ecosystem. It is crucial to remove this package from your projects and monitor for any future vulnerabilities to maintain the security and integrity of your applications.
See every vulnerability recorded for megrbz-devapptea →
FAQ
The 'megrbz-devapptea' package is part of a token reward campaign that has been identified as malicious, designed to inflate developer reputation scores through automated publishing.
This vulnerability can lead to the pollution of the npm registry, potential security risks, and may compromise the integrity of your project if you are using this package.
If you have installed the 'megrbz-devapptea' package, you should remove it immediately and check for any other affected packages in your project.
Yes, you can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities in your software using just the package-lock.json file. You can also check if your application is affected by this vulnerability using the Vulert playground without any signup.
Regularly update your dependencies, monitor for vulnerabilities using tools like Vulert, and review the security advisories for the packages you use.