Malicious Code Injection in mans-nursse-masanfa Package: A Threat to npm Users
Summary
MAL-2025-159725: Malicious code in mans-nursse-masanfa (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 mans-nursse-masanfa package is part of the npm ecosystem, which is widely used for JavaScript package management. This package has been identified as part of a malicious campaign that aims to exploit npm's publishing capabilities. It is designed to generate and publish derivative packages with randomized names, thereby inflating developer reputation scores for token rewards. The malicious nature of this package poses significant risks to developers and users relying on npm for secure package management.
Vulnerability Detail
The vulnerability originates from the package being part of a broader malicious campaign associated with the tea.xyz token reward initiative. It contains scripts that modify the package.json file to remove private flags, alter version numbers, and generate random package names. This behavior leads to the continuous republishing of variants, which pollutes the npm registry and can compromise the integrity of the ecosystem. The ramifications include potential exposure to further malicious packages and a degradation of trust in the npm registry.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall mans-nursse-masanfa
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 mans-nursse-masanfa package and look for alternative packages that provide similar functionality without the associated risks. Additionally, consider using tools like Vulert to monitor your project's dependencies for vulnerabilities.
Conclusion
The mans-nursse-masanfa package poses a significant risk due to its malicious code designed to exploit npm's publishing system. It is essential for developers to be vigilant and remove this package from their projects. Utilizing tools like Vulert can help in monitoring for such vulnerabilities in real-time, ensuring the security of your applications.
See every vulnerability recorded for mans-nursse-masanfa →
FAQ
The mans-nursse-masanfa package is an npm package that has been identified as part of a malicious campaign aimed at exploiting npm's publishing system.
This vulnerability can lead to the introduction of malicious code into your project, potentially compromising its security and integrity.
If you have installed the mans-nursse-masanfa package, it is recommended to uninstall it immediately and check for any dependencies that may be affected.
Yes, you can use Vulert to monitor your project's dependencies for vulnerabilities in real-time without requiring access to the code or installation.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.