Malicious Code Injection in Polymedarnan-nut-bantdadl Package
Summary
MAL-2025-164408: Malicious code in polymedarnan-nut-bantdadl (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 polymedarnan-nut-bantdadl 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 identified as containing malicious scripts that compromise its integrity and the security of the npm registry.
Vulnerability Detail
The vulnerability stems from the presence of malicious code within the polymedarnan-nut-bantdadl package. This code modifies the package.json file to remove private flags, alters version numbers, and generates random package names, leading to the continuous republishing of these variants. This behavior not only pollutes the npm registry but also poses a risk to developers who may unknowingly install these compromised packages, potentially leading to further exploitation.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall polymedarnan-nut-bantdadl
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 polymedarnan-nut-bantdadl package until a secure version is released. Additionally, consider using tools like Vulert, which can monitor your package-lock.json file for vulnerabilities in real-time without requiring code access or installation. You can check if your application is affected by this vulnerability using the Vulert playground at https://vulert.com/scanner.
Conclusion
The polymedarnan-nut-bantdadl package has been identified as containing malicious code that compromises its integrity and poses security risks to developers. It is crucial to update or remove this package and utilize monitoring tools like Vulert to safeguard your projects from potential vulnerabilities.
See every vulnerability recorded for polymedarnan-nut-bantdadl →
FAQ
It is an npm package associated with the tea.xyz token reward campaign, designed to automate the generation and publication of derivative packages.
The malicious code modifies your package.json file and can lead to the installation of compromised packages, posing security risks to your project.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.
If you have installed the polymedarnan-nut-bantdadl package, you should remove it immediately and update your dependencies to ensure your project is secure.
Yes, tools like Vulert can monitor your package-lock.json file for vulnerabilities in real-time, alerting you to any issues without requiring code access.