Malicious Code Injection in valid_krill_0xrequest Package
Summary
MAL-2025-110323: Malicious code in valid_krill_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 valid_krill_0xrequest package is part of the npm ecosystem, often utilized in JavaScript applications for various functionalities. It is associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with packages that can inflate developer reputation scores. This package, like many others in this campaign, has been compromised to include malicious scripts that can harm users and the integrity of the npm registry.
Vulnerability Detail
The vulnerability in the valid_krill_0xrequest package stems from malicious code that modifies the package.json file to remove private flags and alters version numbers. It generates random package names, primarily themed around Indonesian culture, and continuously republishes these variants to pollute the npm registry. This behavior can lead to significant security risks, including the potential for unauthorized access to sensitive data and the degradation of the npm ecosystem's reliability.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall valid_krill_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 valid_krill_0xrequest package from your project by executing the following command: npm uninstall valid_krill_0xrequest. This will prevent the execution of any malicious code associated with the package until a secure version is released.
Conclusion
The valid_krill_0xrequest package has been identified as containing malicious code that poses a significant risk to applications using it. It is crucial to take immediate action by updating or uninstalling the package to protect your application and maintain the integrity of the npm ecosystem.
See every vulnerability recorded for valid_krill_0xrequest →
FAQ
It is an npm package that has been associated with the tea.xyz token reward campaign and has been compromised to include malicious code.
The malicious code modifies your package.json file, removes private flags, and can lead to unauthorized republishing of your packages, compromising your application's integrity.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Visit Vulert Scanner to check your application without needing to sign up.
If an immediate update is not possible, consider uninstalling the package as a temporary measure to mitigate the risk of exploitation.
You can visit the npm security advisories page or use tools like Vulert to stay informed about vulnerabilities in your dependencies.