Malicious Code Injection in townsend-wallet-store: npm Package Vulnerability
Summary
MAL-2025-109787: Malicious code in townsend-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 townsend-wallet-store package is part of the npm ecosystem, primarily used for managing wallet functionalities in decentralized applications. It is designed to facilitate transactions and interactions with blockchain networks. However, this package has been compromised, making it susceptible to malicious activities that can affect developers and users alike.
Vulnerability Detail
The vulnerability originates from a malicious payload embedded within the townsend-wallet-store package. This payload is part of a broader campaign associated with the tea.xyz token reward initiative, which aims to inflate developer reputation scores by flooding the npm registry with derivative packages. The malicious code modifies the package.json file to remove private flags, alters version numbers, and generates random package names, leading to potential security risks and pollution of the npm registry.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall townsend-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 townsend-wallet-store package from your project until a secure version is released. Use the following command to uninstall the package: npm uninstall townsend-wallet-store. This will prevent any potential exploitation of the vulnerability while you await a fix.
Conclusion
The townsend-wallet-store package has been compromised with malicious code that poses significant risks to developers and users. Immediate action is required to update or remove the package to safeguard against potential exploitation. Utilizing tools like Vulert can help in monitoring and identifying vulnerabilities in your projects.
See every vulnerability recorded for townsend-wallet-store →
FAQ
The townsend-wallet-store package is an npm package used for managing wallet functionalities in decentralized applications.
The malicious activity involves the injection of code that modifies package.json files, removes private flags, and generates random package names to inflate developer reputation scores.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without any signup.
If you cannot update the package, it is advisable to uninstall it temporarily to mitigate any risks associated with the vulnerability.
As of now, a patched version has not been specified. It is essential to monitor the package repository for updates.