Malicious Code Detected in cw21 Package - Security Alert
Summary
MAL-2025-17856: Malicious code in cw21 (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 cw21 package is an npm library that serves various functionalities within JavaScript applications. It is commonly used for its ease of integration and utility features. However, recent findings have uncovered that this package contains malicious code, posing significant security risks to applications that utilize it.
Vulnerability Detail
The vulnerability stems from the presence of malicious code within the cw21 package, which was introduced in version 0 and has the potential to compromise the security of any application that includes it. This malicious code can lead to unauthorized access, data breaches, or other harmful actions that can affect both the application and its users.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall cw21
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 cw21 package from your project until a secure version is released. You can do this by executing: 'npm uninstall cw21'. This will prevent any potential exploitation of the malicious code present in the package.
Conclusion
The cw21 package has been identified as containing malicious code, posing a significant security risk to applications that utilize it. It is essential to update or remove the package to ensure the safety of your application and its users. Utilize tools like Vulert for ongoing monitoring of vulnerabilities.
See every vulnerability recorded for cw21 →
FAQ
cw21 is an npm package used in JavaScript applications for various functionalities, but it has been found to contain malicious code.
The malicious code can lead to unauthorized access and data breaches, compromising the security of your application and its users.
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.
Regularly updating your packages and using tools like Vulert to monitor vulnerabilities can help prevent such issues.
As a temporary measure, you can uninstall the cw21 package to mitigate the risk until a secure version is available.