Malicious Code Injection in manda-50: A Threat to npm Packages
Summary
MAL-2025-159649: Malicious code in manda-50 (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 'manda-50' 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 identified as containing malicious scripts that compromise the integrity of the npm registry.
Vulnerability Detail
The vulnerability in 'manda-50' originates from its inclusion in a malicious campaign that employs scripts to manipulate package.json files. These scripts remove private flags, alter version numbers, and generate random package names, leading to the continuous republishing of variants that pollute the npm registry. This can result in significant reputational damage for developers and potential security risks for users who inadvertently install these compromised packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall manda-50
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 measure, you can avoid using 'manda-50' and any packages that depend on it. Additionally, consider using tools like Vulert to monitor your package-lock.json for vulnerabilities. You can check if your application is affected by this vulnerability using the Vulert playground at https://vulert.com/scanner without any signup.
Conclusion
The manda-50 package poses a significant threat due to its malicious code that alters package.json files 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 of their projects.
See every vulnerability recorded for manda-50 →
FAQ
The manda-50 package contains malicious code that modifies package.json files and republish variants to the npm registry, potentially harming developers' reputations.
You can check your package.json and package-lock.json files for any references to 'manda-50' or use tools like Vulert to scan for vulnerabilities.
You should uninstall the manda-50 package immediately using 'npm uninstall manda-50' and review your dependencies for any other malicious packages.
No, there are no patches available for manda-50 as it is a malicious package. The best course of action is to remove it from your project.
Regularly update your dependencies, use tools like Vulert to monitor for vulnerabilities, and review package sources before installation.