Critical Malicious Code Vulnerability in bitcards Package
Summary
MAL-2025-15743: Malicious code in bitcards (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 bitcards package is a JavaScript library available on npm, designed for managing and processing digital card transactions. It offers features such as card validation, transaction history, and user authentication. However, the package has been identified to contain malicious code, posing significant security risks to applications that utilize it.
Vulnerability Detail
The vulnerability in the bitcards package stems from the inclusion of malicious code that can compromise the security of applications using this library. This code can lead to unauthorized access, data breaches, and potential exploitation of user information. The issue was introduced in version 0 and affects all subsequent versions, making it critical for users to address this vulnerability promptly.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall bitcards
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, consider removing the bitcards package from your project until a secure version is released. You can do this by running the command: 'npm uninstall bitcards'. Alternatively, you may explore other libraries that provide similar functionality without the associated risks.
Conclusion
The bitcards package has been identified to contain malicious code, posing a serious security risk to applications that utilize it. Users are urged to update or remove the package to mitigate potential threats. Utilizing tools like Vulert can aid in monitoring for such vulnerabilities in the future.
See every vulnerability recorded for bitcards →
FAQ
The malicious code can potentially allow unauthorized access to sensitive user data and compromise application security.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit 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 or using an alternative library that does not have this vulnerability.
Yes, tools like Vulert can help you monitor your package-lock.json file for vulnerabilities in real-time.
Detailed information can be found in the GitHub repository for malicious packages, specifically at https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/bitcards/MAL-2025-15743.json.