Malicious Code Injection in bert-wallet-store: A Critical npm Vulnerability
Summary
MAL-2025-99947: Malicious code in bert-wallet-store (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 bert-wallet-store package is part of the npm ecosystem, primarily used for managing wallet functionalities in decentralized applications. However, it has been identified as part of a malicious campaign that aims to inflate developer reputation scores through the creation of derivative packages. This vulnerability exposes users to potential security risks, as the package can modify essential files and republish harmful variants.
Vulnerability Detail
The vulnerability originates from a malicious campaign associated with the tea.xyz token reward initiative. The bert-wallet-store package contains scripts that automatically generate and publish derivative packages with randomized names, which can lead to the pollution of the npm registry. The malicious payload alters the package.json file by removing private flags and changing version numbers, potentially compromising the integrity of applications that depend on this package. This can result in unauthorized access to sensitive data and the execution of harmful code.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall bert-wallet-store
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 bert-wallet-store package from your project by executing the following command: npm uninstall bert-wallet-store. This will prevent any malicious code from executing while you assess alternative packages or wait for a secure version to be released.
Conclusion
The bert-wallet-store package has been identified as part of a malicious campaign that poses significant security risks. It is essential for developers to take immediate action by updating or removing the package to protect their applications from potential threats. Utilizing tools like Vulert can help in monitoring for vulnerabilities effectively.
See every vulnerability recorded for bert-wallet-store →
FAQ
bert-wallet-store is an npm package used for managing wallet functionalities in decentralized applications.
The vulnerability allows malicious code to modify your package.json file and republish harmful variants, potentially compromising your application's security.
You should immediately update the package to a patched version or remove it from your project until a secure version is available.
You can use Vulert to monitor and alert you in real-time for open-source vulnerabilities in your software. It analyzes your package-lock.json file 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 signing up.