Malicious Code Injection in primitive_wallaby_0xrequest Package
Summary
MAL-2025-107271: Malicious code in primitive_wallaby_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 primitive_wallaby_0xrequest package is part of the npm ecosystem, often used in JavaScript applications. It is associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with malicious packages. This package, like others in the campaign, is designed to manipulate package metadata and inflate developer reputation scores through automated publishing scripts.
Vulnerability Detail
The vulnerability in the primitive_wallaby_0xrequest package stems from its malicious code that modifies the package.json file. This code removes private flags, alters version numbers, and generates random package names, leading to the continuous republishing of variants that pollute the npm registry. The origin of this vulnerability is linked to the tea.xyz token reward campaign, which aims to exploit npm's publishing mechanisms for fraudulent gains. The ramifications include compromised package integrity, potential security risks for applications relying on this package, and a polluted npm registry that affects the broader developer community.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall primitive_wallaby_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 primitive_wallaby_0xrequest package from your project by executing: npm uninstall primitive_wallaby_0xrequest. This will prevent any malicious code from executing while you seek a secure alternative.
Conclusion
The primitive_wallaby_0xrequest package contains a significant vulnerability that can lead to malicious code execution and package metadata manipulation. It is crucial for developers to take immediate action by updating or removing the package and utilizing tools like Vulert for ongoing vulnerability monitoring.
See every vulnerability recorded for primitive_wallaby_0xrequest →
FAQ
It is an npm package associated with the tea.xyz token reward campaign, often used in JavaScript applications.
The vulnerability can compromise your application's integrity by allowing malicious code to modify package metadata and republish variants, leading to potential security risks.
You should uninstall the package immediately and check for any updates or secure alternatives.
You can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities by analyzing your package-lock.json file.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.