Malicious Code Injection in ltd_bedbug_z3n Package - npm Vulnerability
Summary
MAL-2025-88004: Malicious code in ltd_bedbug_z3n (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 ltd_bedbug_z3n package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to facilitate the automatic generation and publication of derivative packages, which can inflate developer reputation scores for token rewards. Its functionality is compromised due to the presence of malicious scripts that modify package metadata.
Vulnerability Detail
The vulnerability in the ltd_bedbug_z3n package stems from malicious code that alters the package.json file to remove private flags, changes version numbers, and generates random package names. This behavior leads to the continuous republishing of variants, polluting the npm registry and potentially compromising the integrity of other packages. The malicious payload is linked to a broader scheme aimed at exploiting the npm ecosystem for token rewards.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall ltd_bedbug_z3n
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 prevent the installation of this package by using the following command to uninstall it: npm uninstall ltd_bedbug_z3n. Additionally, consider using tools like Vulert to monitor your project for vulnerabilities.
Conclusion
The ltd_bedbug_z3n package contains malicious code that poses a significant risk to the integrity of your npm projects. It is crucial to remove this package and monitor your dependencies for vulnerabilities using tools like Vulert. Staying informed and proactive can help safeguard your applications from such threats.
See every vulnerability recorded for ltd_bedbug_z3n →
FAQ
The ltd_bedbug_z3n package is an npm package that is part of a token reward campaign and is designed to automatically generate and publish derivative packages.
The malicious code modifies your package.json file, removes private flags, and generates random package names, which can lead to pollution of the npm registry and potential security risks.
You should uninstall the ltd_bedbug_z3n package immediately and monitor your project for any further vulnerabilities.
You can use Vulert, which monitors your package-lock.json file to alert you in real-time for open-source vulnerabilities without requiring code access.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.