Malicious Code Injection in manda-20 Package: A Threat to npm Users
Summary
MAL-2025-159616: Malicious code in manda-20 (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-20 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 to include malicious scripts that manipulate package metadata.
Vulnerability Detail
The vulnerability in the manda-20 package originates from its involvement in a malicious campaign that floods the npm registry with derivative packages. The malicious payload modifies the package.json file by removing private flags, altering version numbers, and generating random package names. This behavior can lead to the pollution of the npm registry, potentially affecting developers who rely on npm for package management and increasing the risk of dependency confusion attacks.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall manda-20
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 manda-20 package and monitor your project for any dependencies that may have been affected by this malicious package. Additionally, consider using tools like Vulert to monitor your package-lock.json for vulnerabilities in real-time.
Conclusion
The manda-20 package poses a significant risk due to its malicious code that alters package metadata and floods the npm registry. It is crucial for developers to remove this package and monitor their projects for vulnerabilities to maintain a secure development environment.
See every vulnerability recorded for manda-20 →
FAQ
The manda-20 package is an npm package that is part of a token reward campaign and has been found to contain malicious code.
The vulnerability can lead to the modification of your package.json file, potentially exposing your project to further attacks and dependency issues.
You should uninstall the manda-20 package immediately using 'npm uninstall manda-20' and check for any dependencies that may be affected.
Yes, regularly update your packages, use tools like Vulert to monitor for vulnerabilities, and review package dependencies before installation.
No, there is no patch available for the manda-20 package. The best course of action is to remove it from your project.