Malicious Code Detected in calctw Package - Security Alert
Summary
MAL-2025-16446: Malicious code in calctw (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 calctw package is an npm library designed for performing calculations and mathematical operations in JavaScript applications. It is commonly used by developers for its ease of use and functionality. However, recent findings have revealed that this package contains malicious code, posing significant security risks to applications that utilize it.
Vulnerability Detail
The vulnerability stems from the inclusion of malicious code within the calctw package. This code can potentially compromise the security of applications that depend on this library, leading to unauthorized access, data breaches, or other malicious activities. 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 calctw
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, developers can remove the calctw package from their project and replace it with an alternative library that provides similar functionality without the associated risks. This can be done by uninstalling the package using the command: npm uninstall calctw.
Conclusion
The discovery of malicious code in the calctw package highlights the importance of maintaining secure dependencies in software development. Users are urged to take immediate action by updating or replacing the affected package to safeguard their applications.
See every vulnerability recorded for calctw →
FAQ
calctw is an npm package used for performing calculations in JavaScript applications.
The malicious code can lead to unauthorized access and potential data breaches in applications using the calctw package.
You can use the Vulert platform to monitor and alert for vulnerabilities in your application by analyzing your package-lock.json file.
Regularly updating your dependencies and using tools like Vulert can help you stay informed about vulnerabilities in your open-source packages.
Consider removing the calctw package and using an alternative library until a secure version is available.