Malicious Code Injection in electrical_bedbug_replicate_automation Package
Summary
MAL-2025-102023: Malicious code in electrical_bedbug_replicate_automation (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 electrical_bedbug_replicate_automation package is an npm module that is part of a broader campaign to exploit the npm registry. It is designed to automate tasks related to bedbug replication, but it has been compromised to include malicious scripts that manipulate package metadata. This vulnerability exposes developers to risks of reputation damage and potential security breaches.
Vulnerability Detail
The vulnerability originates from the package being part of the tea.xyz token reward campaign, which floods npm with malicious packages. These packages contain scripts that modify the package.json file to remove private flags, alter version numbers, and generate random package names, leading to the pollution of the npm registry. The malicious payload can inflate developer reputation scores fraudulently, posing a risk to the integrity of the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall electrical_bedbug_replicate_automation
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 electrical_bedbug_replicate_automation package and look for alternative packages that provide similar functionality without the associated risks. Additionally, you can monitor your package dependencies using tools like Vulert, which can alert you to vulnerabilities in real-time.
Conclusion
The electrical_bedbug_replicate_automation package has been identified as containing malicious code that compromises the integrity of npm projects. It is crucial for developers to remove this package and monitor their dependencies for vulnerabilities to maintain the security of their applications.
See every vulnerability recorded for electrical_bedbug_replicate_automation →
FAQ
It is an npm module designed for automating tasks related to bedbug replication, but it has been compromised with malicious code.
The malicious code alters your package.json file, potentially exposing your project to security risks and damaging your developer reputation.
You should uninstall the package immediately using 'npm uninstall electrical_bedbug_replicate_automation' and look for safer alternatives.
You can use tools like Vulert, which monitors your package-lock.json file to alert you in real-time about open-source vulnerabilities.
Yes, you can use the Vulert playground at Vulert Scanner to check for vulnerabilities in your application without any signup.