Malicious Code Detected in node-calculator-6a88: A Critical Security Alert
Summary
MAL-2025-190514: Malicious code in node-calculator-6a88 (npm). Affects node-calculator-6a88 versions 2.5.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 package node-calculator-6a88 is an npm package designed for performing basic arithmetic calculations. It is intended to be a lightweight and simple tool for developers needing quick calculations within their applications. However, this package has been flagged for containing malicious code that compromises its integrity and poses security risks to users.
Vulnerability Detail
The vulnerability in node-calculator-6a88 arises from the presence of malicious code that communicates with a domain associated with harmful activities. This code executes commands that can lead to unauthorized access or control over the user's system. The vulnerability was identified through analyses conducted by Amazon Inspector and the OpenSSF Package Analysis project, which confirmed the package's malicious behavior in version 2.5.0.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall node-calculator-6a88
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-6a88 package altogether. Instead, implement basic arithmetic functions directly in your code. For 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) throw new Error('Cannot divide by zero');
return a / b;
}
Conclusion
The discovery of malicious code in the node-calculator-6a88 package poses significant security risks to users. It is crucial to take immediate action by removing the package and implementing secure alternatives to safeguard your applications. Regular monitoring for vulnerabilities using tools like Vulert can help maintain the security of your software.
See every vulnerability recorded for node-calculator-6a88 →
FAQ
node-calculator-6a88 is an npm package designed for performing basic arithmetic calculations.
The package contains code that communicates with a malicious domain and executes harmful commands.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.
You should remove the package and update to a secure alternative or implement basic arithmetic functions directly in your code.
Currently, there is no patched version of node-calculator-6a88. It is recommended to remove the package and use alternatives.