Malicious Code Detected in node-calculator-239a Package - Security Alert
Summary
MAL-2025-190529: Malicious code in node-calculator-239a (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-239a package is an npm library designed for performing basic arithmetic calculations. It is commonly used in JavaScript applications for its simplicity and ease of integration. However, this package has been flagged for containing malicious code, which poses significant security risks to applications that utilize it.
Vulnerability Detail
The vulnerability originates from the inclusion of malicious code within the node-calculator-239a 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-239a
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, consider using an alternative package for arithmetic calculations that does not have known vulnerabilities. For example, you can use the 'mathjs' package by installing it with: npm install mathjs.
Conclusion
The discovery of malicious code in the node-calculator-239a package highlights the importance of regularly auditing dependencies in software projects. Immediate action is required to remove the affected package and replace it with a secure alternative to safeguard your application.
See every vulnerability recorded for node-calculator-239a →
FAQ
The exact nature of the malicious code has not been disclosed, but it is confirmed to pose security risks to applications using the package.
You can use the Vulert platform to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without requiring signup.
If immediate removal is not possible, consider implementing strict access controls and monitoring to mitigate potential risks until the package can be replaced.
As of now, specific exploits related to the malicious code in node-calculator-239a have not been publicly reported.
Utilize tools like Vulert, which monitors your package-lock.json for vulnerabilities in real-time, ensuring you are alerted to any issues as they arise.