Malicious Code Detected in node-calculator-e0b2 Package
Summary
MAL-2025-190543: Malicious code in node-calculator-e0b2 (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-e0b2 package is an npm library designed for performing basic arithmetic calculations. It is intended for developers looking to integrate simple calculator functionalities into their applications. However, this package has been identified to contain malicious code, posing significant security risks to any application utilizing it.
Vulnerability Detail
The vulnerability in the node-calculator-e0b2 package stems from the presence of malicious code that could potentially compromise the security of applications that depend on it. This code may allow unauthorized access to sensitive data or facilitate other malicious activities. The origin of this issue has been traced back to the package's source, as identified by Amazon Inspector, which flagged the package for containing harmful elements.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall node-calculator-e0b2
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-e0b2 package until a secure version is released. If you need calculator functionality, consider implementing your own basic calculator logic or using a different, trusted package.
Conclusion
The node-calculator-e0b2 package has been identified as containing malicious code, posing serious security risks to applications that utilize it. It is essential to take immediate action by updating or removing the package to safeguard your application. Utilizing tools like Vulert can help monitor and alert you to such vulnerabilities in real-time.
See every vulnerability recorded for node-calculator-e0b2 →
FAQ
The node-calculator-e0b2 package is an npm library designed for basic arithmetic operations, allowing developers to easily integrate calculator functionalities into their applications.
The malicious code was detected by Amazon Inspector, which flagged the package for containing harmful elements that could compromise application security.
Using the compromised node-calculator-e0b2 package could lead to unauthorized access to sensitive data, data breaches, or other malicious activities within your application.
You can check if your application is affected by using Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to use the Vulert playground without any signup.
If you cannot update the package due to the absence of a patched version, consider removing it from your project and replacing it with a more secure alternative or implementing your own calculator functionality.