Malicious Code Injection in past_mandrill_0xrequest Package
Summary
MAL-2025-106947: Malicious code in past_mandrill_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 past_mandrill_0xrequest package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to facilitate automated publishing of derivative packages, which can inflate developer reputation scores. However, it has been compromised to include malicious scripts that manipulate package metadata.
Vulnerability Detail
The vulnerability in the past_mandrill_0xrequest package stems from its inclusion in a campaign that floods the npm registry with malicious packages. The malicious payload alters the package.json file by removing private flags, changing version numbers, and generating random package names. This behavior can lead to the pollution of the npm registry and can compromise the integrity of applications relying on this package.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall past_mandrill_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 avoid using the past_mandrill_0xrequest package and look for alternative packages that provide similar functionality without the associated risks.
Conclusion
The past_mandrill_0xrequest package has been identified as containing malicious code that can compromise application integrity. It is crucial to remove this package and monitor your projects for vulnerabilities using tools like Vulert to ensure ongoing security.
See every vulnerability recorded for past_mandrill_0xrequest →
FAQ
It is an npm package that was part of a token reward campaign but has been compromised to include malicious code.
The malicious code can alter your package.json file, potentially leading to security vulnerabilities and the pollution of the npm registry.
You should remove the past_mandrill_0xrequest package from your project immediately and look for alternatives.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just your package-lock.json file.
You can use the Vulert playground at Vulert Scanner to check if your application is affected without needing to sign up.