Malicious Code Injection in mental_vole_requirement Package
Summary
MAL-2025-95448: Malicious code in mental_vole_requirement (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 mental_vole_requirement package is part of the npm ecosystem, which is widely used for JavaScript package management. This package is associated with a token reward campaign that has been known to flood the npm registry with malicious packages. Its primary functionality is to serve as a dependency for other JavaScript applications, but it has been compromised to include harmful scripts that manipulate package metadata.
Vulnerability Detail
The vulnerability stems from the presence of malicious code within the mental_vole_requirement package. This code is designed to automatically modify the package.json file by removing private flags, altering version numbers, and generating random package names. The malicious payload continuously republishes these variants to the npm registry, which can lead to a polluted ecosystem and inflated developer reputation scores for fraudulent token rewards. The origin of this vulnerability is linked to the tea.xyz token reward campaign, which exploits npm's publishing mechanisms.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall mental_vole_requirement
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 mental_vole_requirement package and look for alternative packages that provide similar functionality without the associated risks. Additionally, ensure that your package.json file does not include any dependencies on this malicious package.
Conclusion
The mental_vole_requirement package has been identified as a source of malicious code that can compromise the integrity of JavaScript applications. It is essential for developers to remove this package from their projects and to utilize tools like Vulert to monitor for vulnerabilities in real-time. By staying vigilant and proactive, developers can protect their applications from similar threats in the future.
See every vulnerability recorded for mental_vole_requirement →
FAQ
It is an npm package that has been compromised to include malicious code designed to manipulate package metadata and publish fraudulent variants.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. By analyzing your package-lock.json file, it can help you determine if your application is affected.
The risks include the potential for your project to be associated with malicious activities, such as the pollution of the npm registry and the compromise of your application's integrity.
Regularly audit your dependencies, use tools like Vulert for real-time monitoring, and avoid using unverified packages from the npm registry.
Immediately uninstall the mental_vole_requirement package and check your project for any unintended consequences caused by its use.