Malicious Code Detected in asmcrypto Package - Security Alert
Summary
MAL-2025-14908: Malicious code in asmcrypto (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 asmcrypto package is a JavaScript library designed for cryptographic operations, providing various algorithms for secure data handling. It is widely used in applications requiring encryption and hashing functionalities. However, recent findings have revealed that the package contains malicious code, posing significant security risks to users and their applications.
Vulnerability Detail
The vulnerability in the asmcrypto package originates from the inclusion of malicious code that can compromise the integrity and security of applications utilizing this library. This code may lead to unauthorized access, data breaches, or other malicious activities, affecting both developers and end-users. The issue is particularly critical as it affects all versions starting from 0, making it imperative for users to take immediate action.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall asmcrypto
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, users can consider removing the asmcrypto package from their projects until a secure version is released. Alternatively, developers may explore other cryptographic libraries that do not have known vulnerabilities.
Conclusion
The discovery of malicious code in the asmcrypto package highlights the importance of vigilance in managing open-source dependencies. Users are urged to take immediate action to secure their applications by updating or removing the affected package. Utilizing tools like Vulert can aid in monitoring vulnerabilities effectively.
See every vulnerability recorded for asmcrypto →
FAQ
asmcrypto is a JavaScript library used for cryptographic operations, including encryption and hashing.
The malicious code can compromise application security, potentially leading to unauthorized access and data breaches.
You can use Vulert, which monitors open-source vulnerabilities in your software. Simply upload your package-lock.json file to receive real-time alerts.
Currently, there is no patched version available. Users should monitor the npm registry for updates.
Consider removing the package from your project or using alternative libraries until a secure version is released.