Critical Malicious Code Vulnerability in node-calculator-98ba Package
Summary
MAL-2025-192836: Malicious code in node-calculator-98ba (npm). Affects node-calculator-98ba versions 2.4.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-98ba package is an npm library designed to provide basic arithmetic operations such as addition, subtraction, multiplication, and division. It is commonly used in JavaScript applications for performing calculations. However, this package has been identified to contain malicious code that can compromise the security of applications utilizing it, making it essential for developers to be aware of this vulnerability.
Vulnerability Detail
The vulnerability originates from a malicious code injection in version 2.4.0 of the node-calculator-98ba package. This code can execute arbitrary commands on the host machine, potentially leading to data breaches, unauthorized access, or system compromise. The malicious nature of this vulnerability poses significant risks to any application that relies on this package, as it can be exploited by attackers to gain control over the application environment.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall node-calculator-98ba
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 node-calculator-98ba package from your project and replace it with a different, trusted calculator library until the vulnerability is resolved. Use the following command to uninstall the package: npm uninstall node-calculator-98ba.
Conclusion
The node-calculator-98ba package has a critical vulnerability due to malicious code that can compromise application security. It is crucial for developers to update to a patched version or find alternative solutions to mitigate risks. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.
See every vulnerability recorded for node-calculator-98ba →
FAQ
It is an npm library used for performing basic arithmetic operations in JavaScript applications.
The vulnerability involves malicious code that can execute arbitrary commands, posing a risk of data breaches and unauthorized access.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
Consider removing the package and using an alternative library until a secure version is available.
The vulnerability was identified by ReversingLabs, a cybersecurity firm specializing in threat detection.