Malicious Code Injection in miftaiky-choose-then Package
Summary
MAL-2025-160405: Malicious code in miftaiky-choose-then (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 miftaiky-choose-then package is part of the npm ecosystem, often used for various JavaScript applications. It is designed to facilitate certain functionalities within applications, but it has been compromised by malicious actors. This vulnerability allows attackers to exploit the package for nefarious purposes, including the automatic generation and publication of derivative packages that can pollute the npm registry.
Vulnerability Detail
The vulnerability originates from the package being part of a token reward campaign that floods npm with malicious packages. It contains scripts that modify the package.json file to remove private flags, change version numbers, and generate random package names. This behavior can lead to a polluted npm registry, affecting developers' reputations and potentially introducing security risks into applications that depend on these packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall miftaiky-choose-then
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 remove the miftaiky-choose-then package from your project until a secure version is released. You can do this by executing the following command: npm uninstall miftaiky-choose-then.
Conclusion
The miftaiky-choose-then package has been identified as containing malicious code that can compromise applications using it. It is crucial to update or remove this package to safeguard your projects. Monitoring tools like Vulert can help you stay informed about vulnerabilities in your dependencies.
See every vulnerability recorded for miftaiky-choose-then →
FAQ
It is an npm package used in JavaScript applications, but it has been compromised with malicious code.
The vulnerability can lead to the introduction of malicious code, which may compromise the security and integrity of your application.
You should update the package to the latest version or remove it from your project until a secure version is available.
You can use tools like Vulert, which monitors and alerts you in real-time for open-source vulnerabilities using just your package-lock.json.
Yes, you can use the Vulert playground at Vulert Scanner to check for vulnerabilities in your application without any signup.