Malicious Code Vulnerability in lois-wallet-store: npm Package Exploit
Summary
MAL-2025-105305: Malicious code in lois-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 lois-wallet-store package is a JavaScript library available on npm, primarily used for managing wallet functionalities in decentralized applications. It is part of a broader ecosystem that facilitates token transactions and user interactions within blockchain environments. However, this package has been identified as part of a malicious campaign that exploits npm's package management system.
Vulnerability Detail
The lois-wallet-store package contains malicious code that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior is part of a larger scheme associated with the tea.xyz token reward campaign, which aims to inflate developer reputation scores by flooding the npm registry with derivative packages. The implications of this vulnerability include potential exposure of sensitive data, unauthorized access to systems, and the pollution of the npm registry with harmful packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall lois-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 lois-wallet-store package from your project by executing the following command: npm uninstall lois-wallet-store. This will prevent any malicious code from executing until a secure version is available.
Conclusion
The lois-wallet-store package has been identified as containing malicious code that poses significant risks to applications using it. It is crucial to take immediate action by updating or removing the package to safeguard your project from potential exploits.
See every vulnerability recorded for lois-wallet-store →
FAQ
lois-wallet-store is an npm package used for managing wallet functionalities in decentralized applications.
The vulnerability can lead to unauthorized modifications of your package.json file, potentially exposing your application to security risks.
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.
If an immediate update is not possible, consider removing the package temporarily as a workaround to mitigate risks.