Malicious Code Detected in node-calculator-9e41: A Security Alert
Summary
MAL-2025-190518: Malicious code in node-calculator-9e41 (npm). Affects node-calculator-9e41 versions 4.0.0. 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 node-calculator-9e41 package is a JavaScript library available through npm, designed to perform various mathematical calculations. It is often used in web applications to provide users with a simple interface for performing arithmetic operations. However, this package has been flagged for containing malicious code that poses significant security risks to applications that utilize it.
Vulnerability Detail
The vulnerability in node-calculator-9e41 arises from the presence of malicious code that communicates with a domain associated with harmful activities. This can lead to unauthorized data access, potential data breaches, and exploitation of the affected systems. The malicious nature of the code was identified by both Amazon Inspector and the OpenSSF Package Analysis project, highlighting the importance of scrutinizing third-party packages for security threats.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall node-calculator-9e41
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 avoid using the node-calculator-9e41 package altogether and implement your own basic calculator functionality using native JavaScript. Here’s a simple example:
function add(a, b) {
return a + b;
}
function subtract(a, b) {
return a - b;
}
function multiply(a, b) {
return a * b;
}
function divide(a, b) {
if (b === 0) return 'Error: Division by zero';
return a / b;
}
This code provides basic arithmetic operations without relying on external packages.
Conclusion
The node-calculator-9e41 package has been identified as containing malicious code that poses serious security risks. It is crucial for developers to remove this package and consider alternatives or implement their own solutions. Staying informed about vulnerabilities and using tools like Vulert can help maintain the security of your applications.
See every vulnerability recorded for node-calculator-9e41 →
FAQ
node-calculator-9e41 is a JavaScript library available on npm that allows users to perform various mathematical calculations.
The package communicates with a domain linked to malicious activities, which can lead to unauthorized access and data breaches.
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.
It is advised to remove the package and replace it with a secure alternative or implement your own calculator functionality.
Regularly check for updates in your package manager and consider using tools like Vulert to monitor your dependencies for vulnerabilities.