Malicious Code Vulnerability in chance-wallet-store Package
Summary
MAL-2025-100318: Malicious code in chance-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 chance-wallet-store package is part of the npm ecosystem, typically used for managing and storing wallet-related functionalities in applications. However, it has been identified as part of a malicious campaign that floods the npm registry with harmful packages. This package is particularly vulnerable due to its association with scripts designed to manipulate package metadata and inflate developer reputation scores.
Vulnerability Detail
The vulnerability stems from the chance-wallet-store package being involved in the tea.xyz token reward campaign. It contains malicious scripts that modify the package.json file by removing private flags, altering version numbers, and generating random package names. This behavior leads to the continuous republishing of variants, polluting the npm registry and potentially compromising the integrity of applications that depend on this package.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall chance-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 chance-wallet-store package from your project and replace it with a trusted alternative. You can do this using the command: npm uninstall chance-wallet-store.
Conclusion
The chance-wallet-store package has been identified as having a serious vulnerability due to malicious code that alters package metadata. It is crucial to update or remove this package to protect your application from potential threats. Utilize tools like Vulert to monitor your dependencies for vulnerabilities.
See every vulnerability recorded for chance-wallet-store →
FAQ
The chance-wallet-store package is an npm package used for wallet management in applications, but it has been compromised by malicious code.
The malicious code modifies package metadata, potentially leading to security vulnerabilities and the pollution of the npm registry.
You can use Vulert, which monitors open-source vulnerabilities in your software by analyzing package-lock.json. Visit Vulert Scanner to check your application without signup.
If you cannot update the package right away, consider removing it and using a trusted alternative to mitigate risks.
For detailed information, refer to the vulnerability report on the official GitHub repository or the npm advisory.