Malicious Code Injection in secret_locust_0xrequest Package
Summary
MAL-2025-108487: Malicious code in secret_locust_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 secret_locust_0xrequest package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to facilitate certain functionalities within the npm registry but has been compromised to include malicious scripts that can manipulate package metadata and inflate developer reputation scores.
Vulnerability Detail
The vulnerability stems from malicious code embedded within the secret_locust_0xrequest package. This code modifies the package.json file by removing private flags, altering version numbers, and generating random package names. The intent is to create numerous derivative packages that pollute the npm registry, potentially leading to reputational damage for developers and security risks for users who inadvertently install these compromised packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall secret_locust_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, avoid using the secret_locust_0xrequest package and monitor your dependencies for any signs of malicious activity. Regularly check your package-lock.json file for any unauthorized changes.
Conclusion
The secret_locust_0xrequest package contains malicious code that poses significant risks to developers and users alike. It is crucial to remove this package from your projects and utilize tools like Vulert to monitor for vulnerabilities in real-time.
See every vulnerability recorded for secret_locust_0xrequest →
FAQ
It is an npm package that has been compromised to include malicious code aimed at manipulating package metadata.
If your application uses the secret_locust_0xrequest package, it may inadvertently publish malicious derivatives and compromise your project's integrity.
You should uninstall the package immediately and monitor your project for any unusual behavior.
Yes, you can use Vulert, which monitors vulnerabilities in real-time using just your package-lock.json file. Visit Vulert Scanner to check your application.
Regularly audit your dependencies, use tools like Vulert for monitoring, and stay updated on security advisories related to your packages.