Malicious Code Injection in democratic_tapir_0xrequest Package
Summary
MAL-2025-101340: Malicious code in democratic_tapir_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 democratic_tapir_0xrequest package is part of the npm ecosystem, often utilized for various JavaScript applications. It has been identified as part of a broader campaign that aims to exploit npm's package publishing system. This package, like others in the campaign, is designed to generate and publish derivative packages with randomized names, which can mislead developers and inflate reputation scores for token rewards.
Vulnerability Detail
The vulnerability stems from malicious code embedded within the democratic_tapir_0xrequest package. This code modifies the package.json file to remove private flags, alters version numbers, and generates random package names, leading to the continuous republishing of these variants. This behavior not only pollutes the npm registry but also poses a risk to developers who may unknowingly use these compromised packages, potentially leading to security breaches in their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall democratic_tapir_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 measure, avoid using the democratic_tapir_0xrequest package and consider using alternative packages that provide similar functionality without the associated risks. Additionally, you can monitor your package dependencies using tools like Vulert, which alerts you to vulnerabilities in real-time.
Conclusion
The democratic_tapir_0xrequest package contains malicious code that poses significant risks to developers and their applications. It is essential to remove this package and monitor your dependencies for vulnerabilities. Utilizing tools like Vulert can help ensure your application remains secure.
See every vulnerability recorded for democratic_tapir_0xrequest →
FAQ
It is an npm package that has been identified as part of a malicious campaign to exploit the npm registry.
The malicious code can modify your package.json, leading to the installation of compromised packages that may introduce security vulnerabilities.
You should uninstall the package immediately and monitor your application for any unusual behavior.
You can use tools like Vulert, which allows you to check your package-lock.json for vulnerabilities without needing to install any software.
Yes, you can use the Vulert playground at Vulert Scanner to check for vulnerabilities in your application without any signup.