Malicious Code Detected in canway Package - Security Alert
Summary
MAL-2025-16505: Malicious code in canway (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 canway package is an npm library designed for various functionalities in JavaScript applications. It is widely used for its ease of integration and utility in managing tasks. However, recent findings have revealed that this package contains malicious code, posing significant security risks to applications that utilize it.
Vulnerability Detail
The vulnerability in the canway package stems from the introduction of malicious code that can compromise the security of applications using this library. This code may lead to unauthorized access, data breaches, or other harmful actions within the affected systems. The issue was introduced in version 0 and affects all subsequent versions, making it critical 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 canway
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 measure, consider removing the canway package from your project until a secure version is released. You can do this by executing the command: 'npm uninstall canway'. This will help mitigate the risks associated with the malicious code.
Conclusion
The discovery of malicious code in the canway package highlights the importance of regularly monitoring and updating dependencies in software projects. Users are urged to take immediate action to secure their applications by updating or removing the affected package.
See every vulnerability recorded for canway →
FAQ
The canway package is an npm library used in JavaScript applications for various functionalities, but it has recently been found to contain malicious code.
The malicious code was introduced in version 0 of the canway package, affecting all subsequent versions.
Using the canway package can lead to unauthorized access, data breaches, and other harmful actions within your application.
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 you cannot update the package right away, consider uninstalling it to prevent potential security risks until a secure version is released.