Malicious Code Detected in node-calculator-98b6 Package
Summary
MAL-2025-190535: Malicious code in node-calculator-98b6 (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 node-calculator-98b6 package is an npm library designed for performing basic arithmetic calculations. It is typically used in JavaScript applications to facilitate mathematical operations. However, this package has been identified as containing malicious code, posing significant security risks to applications that utilize it.
Vulnerability Detail
The vulnerability originates from the inclusion of malicious code within the node-calculator-98b6 package. This code can potentially compromise the security of applications that depend on this package, leading to unauthorized access, data breaches, or other malicious activities. The specific technical details of the malicious code have not been disclosed, but its presence is confirmed by security assessments.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall node-calculator-98b6
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-98b6 package altogether and 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 node-calculator-98b6 package has been identified as containing malicious code, which poses a serious security risk to applications that utilize it. It is crucial to remove this package and consider alternatives to ensure the security of your application.
See every vulnerability recorded for node-calculator-98b6 →
FAQ
It is an npm library used for performing basic arithmetic calculations in JavaScript applications.
The specific details of the malicious code have not been disclosed, but it poses significant security risks.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Check your application using the Vulert playground at Vulert Scanner.
You should remove the package from your project and consider using an alternative for arithmetic calculations.
Regularly monitor your dependencies using tools like Vulert and keep your packages updated to the latest secure versions.