Malicious Code Injection in nuilava-drae-naha Package
Summary
MAL-2025-163877: Malicious code in nuilava-drae-naha (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 nuilava-drae-naha package is part of the npm ecosystem, primarily used for various JavaScript functionalities. However, it has been identified as part of a malicious campaign that floods the npm registry with harmful packages. This package is designed to manipulate developer reputation scores through the generation of derivative packages with randomized names, which can lead to significant security risks for users relying on its functionality.
Vulnerability Detail
The vulnerability in the nuilava-drae-naha package stems from its association with the tea.xyz token reward campaign. It contains scripts that automatically modify the package.json file to remove private flags, alter version numbers, and create numerous derivative packages with misleading names. This behavior not only pollutes the npm registry but also poses a risk of unintentional code execution and dependency issues for developers who may unknowingly integrate these malicious packages into their projects.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nuilava-drae-naha
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 nuilava-drae-naha package and look for alternative packages that provide similar functionality without the associated risks. Additionally, you can monitor your package-lock.json file for any unauthorized changes.
Conclusion
The nuilava-drae-naha package poses a significant security risk due to its malicious code injection capabilities. It is crucial for developers to be aware of this vulnerability and take appropriate actions to safeguard their projects. Regular monitoring and updating of dependencies are essential practices to maintain security in software development.
See every vulnerability recorded for nuilava-drae-naha →
FAQ
The nuilava-drae-naha package is an npm package that has been identified as part of a malicious campaign to manipulate developer reputation scores.
This vulnerability can lead to the injection of malicious code, which may compromise your project's security and integrity.
You should immediately remove the nuilava-drae-naha package from your project and monitor your dependencies for any unauthorized changes.
Yes, you can use tools like Vulert, which monitors your package-lock.json file for open-source vulnerabilities in real-time without requiring code access or installation.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.