Malicious Code Detected in cmiskit Package - Security Alert
Summary
MAL-2025-17227: Malicious code in cmiskit (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 cmiskit package is a JavaScript library designed for quantum computing applications, providing tools and functionalities for developers to create and manipulate quantum circuits. However, it has been identified to contain malicious code that poses significant security risks to users and their applications.
Vulnerability Detail
The cmiskit package has been found to contain malicious code that can compromise the security of applications using it. This vulnerability originated from the package's codebase, which has been tampered with to include harmful scripts. The ramifications of this vulnerability include unauthorized access to sensitive data, potential data breaches, and the possibility of executing arbitrary code within the user's environment.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall cmiskit
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 cmiskit package from your project if it is not critical to your application. Use the following command to uninstall it: npm uninstall cmiskit. Alternatively, consider using a different library that provides similar functionalities without the associated risks.
Conclusion
The cmiskit package has been identified with a serious vulnerability due to the presence of malicious code. Users are advised to update the package promptly or consider alternative solutions to mitigate security risks. Utilizing tools like Vulert can help monitor and manage vulnerabilities effectively.
See every vulnerability recorded for cmiskit →
FAQ
cmiskit is a JavaScript library for quantum computing applications, enabling developers to create and manipulate quantum circuits.
The malicious code can compromise application security, potentially leading to unauthorized access and data breaches.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Check your application using the Vulert playground at Vulert Scanner.
Yes, updating to the latest version of cmiskit will resolve the vulnerability. Use the command 'npm update cmiskit' to apply the patch.
If an immediate update is not possible, consider uninstalling the package or using an alternative library until a secure version is available.