Malicious Code Injection in miniature_cod_0xrequest Package
Summary
MAL-2025-105848: Malicious code in miniature_cod_0xrequest (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 miniature_cod_0xrequest package is part of a broader ecosystem within the npm registry, often associated with token reward campaigns like tea.xyz. This package is designed to facilitate various functionalities but has been compromised to include malicious code that affects its integrity and security. The package is known for generating and publishing derivative packages with randomized names, which can lead to reputation inflation and registry pollution.
Vulnerability Detail
The vulnerability in the miniature_cod_0xrequest package originates from its association with malicious scripts that modify the package.json file. These scripts remove private flags, alter version numbers, and generate random package names, leading to the continuous republishing of variants that pollute the npm registry. The ramifications include potential security risks for developers who unknowingly use these compromised packages, as they may inadvertently expose their applications to further vulnerabilities.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall miniature_cod_0xrequest
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 miniature_cod_0xrequest package from your project by executing: npm uninstall miniature_cod_0xrequest. This will prevent any malicious code from executing until a secure version is available.
Conclusion
The miniature_cod_0xrequest package has been identified as containing malicious code that poses significant security risks. It is essential for developers to take immediate action by uninstalling the package and monitoring for updates. Utilizing tools like Vulert can help in identifying and mitigating such vulnerabilities in the future.
See every vulnerability recorded for miniature_cod_0xrequest →
FAQ
It is an npm package that has been compromised to include malicious code, primarily associated with token reward campaigns.
The malicious code modifies package.json, removes private flags, and generates random package names, which can lead to security vulnerabilities in your application.
You should uninstall the package immediately and monitor for any updates or patches from the maintainers.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. You can check your application using the Vulert playground without any signup.
Regularly update your dependencies, use tools like Vulert to monitor vulnerabilities, and review package sources before installation.