Malicious Code Injection in manda-21 Package: A Threat to npm Users
Summary
MAL-2025-159617: Malicious code in manda-21 (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 manda-21 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. Its functionality is compromised due to the presence of malicious scripts that manipulate package metadata.
Vulnerability Detail
The vulnerability in the manda-21 package originates from its inclusion in a malicious campaign that floods the npm registry with derivative packages. These packages contain scripts that modify the package.json file by removing private flags, altering version numbers, and generating random package names. This behavior not only pollutes the npm registry but also poses a risk to developers who may unknowingly install these compromised packages, leading to potential security breaches and loss of trust in the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall manda-21
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 manda-21 package and monitor your project's dependencies for any instances of this package. You can also use tools like Vulert to scan your package-lock.json file for vulnerabilities. For example, you can check if your application is affected by visiting the Vulert playground at https://vulert.com/scanner.
Conclusion
The manda-21 package poses a significant risk due to its malicious code that modifies project metadata and floods the npm registry with compromised packages. It is crucial for developers to remove this package and monitor their dependencies to maintain the integrity and security of their projects.
See every vulnerability recorded for manda-21 →
FAQ
The manda-21 package is an npm package associated with the tea.xyz token reward campaign, designed to generate and publish derivative packages.
The vulnerability can lead to the installation of malicious packages that modify your project's metadata and potentially compromise its security.
You should uninstall the manda-21 package immediately using the command npm uninstall manda-21 and check for any dependencies that may be affected.
Currently, there is no patched version available for the manda-21 package. It is recommended to remove it from your project.
You can use Vulert, which monitors your package-lock.json file for vulnerabilities in real-time. Visit Vulert Scanner to check your application without any signup.