Malicious Code Injection in polymedarnan-nufatiman-nuts: A Threat to npm Packages
Summary
MAL-2025-164402: Malicious code in polymedarnan-nufatiman-nuts (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 'polymedarnan-nufatiman-nuts' is part of the npm ecosystem, which is widely used for JavaScript package management. This package is associated with the tea.xyz token reward campaign, which has been linked to a series of malicious activities aimed at inflating developer reputation scores. The package's functionality is compromised due to its involvement in autopublishing scripts that generate and publish derivative packages with randomized names, leading to pollution of the npm registry.
Vulnerability Detail
The vulnerability stems from the malicious code embedded within the 'polymedarnan-nufatiman-nuts' package. This code modifies the package.json file by removing private flags, altering version numbers, and generating random package names. The continuous republishing of these variants can lead to significant pollution of the npm registry, potentially affecting developers' ability to find legitimate packages and compromising the integrity of the ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall polymedarnan-nufatiman-nuts
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 the 'polymedarnan-nufatiman-nuts' package and replace it with a trusted alternative. Additionally, you can monitor your package-lock.json file for any unauthorized changes and revert them if necessary.
Conclusion
The 'polymedarnan-nufatiman-nuts' package poses a significant threat due to its malicious code that alters package configurations and pollutes the npm registry. It is crucial for developers to take immediate action by removing the package and monitoring their projects for any vulnerabilities. Utilizing tools like Vulert can help maintain the security of your applications.
See every vulnerability recorded for polymedarnan-nufatiman-nuts →
FAQ
The package contains malicious code that modifies package.json files and repopulates the npm registry with harmful variants.
You can use Vulert, which monitors vulnerabilities in real-time using your package-lock.json file. Check your application at Vulert Scanner without needing to sign up.
You should uninstall the package immediately using 'npm uninstall polymedarnan-nufatiman-nuts' and check for any unauthorized changes in your project.
While specific alternatives may depend on your project's requirements, consider using well-established packages that serve similar functionalities without the associated risks.
Regularly audit your dependencies, use tools like Vulert for monitoring, and stay informed about the latest security advisories in the npm ecosystem.